From 32a93b58b2eab85e31cff79662c4e6056f18d9fd Mon Sep 17 00:00:00 2001 From: Matthew McMillan Date: Thu, 23 Feb 2023 19:58:41 -0500 Subject: [PATCH] fishPlugins.plugin-git: init at 0.1 --- pkgs/shells/fish/plugins/default.nix | 2 ++ pkgs/shells/fish/plugins/plugin-git.nix | 20 ++++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 pkgs/shells/fish/plugins/plugin-git.nix diff --git a/pkgs/shells/fish/plugins/default.nix b/pkgs/shells/fish/plugins/default.nix index 7c160803a9c0..718dbfec7a64 100644 --- a/pkgs/shells/fish/plugins/default.nix +++ b/pkgs/shells/fish/plugins/default.nix @@ -32,6 +32,8 @@ lib.makeScope newScope (self: with self; { pisces = callPackage ./pisces.nix { }; + plugin-git = callPackage ./plugin-git.nix { }; + puffer = callPackage ./puffer.nix { }; pure = callPackage ./pure.nix { }; diff --git a/pkgs/shells/fish/plugins/plugin-git.nix b/pkgs/shells/fish/plugins/plugin-git.nix new file mode 100644 index 000000000000..7d1774b642df --- /dev/null +++ b/pkgs/shells/fish/plugins/plugin-git.nix @@ -0,0 +1,20 @@ +{ lib, buildFishPlugin, fetchFromGitHub }: + +buildFishPlugin rec { + pname = "plugin-git"; + version = "0.1"; + + src = fetchFromGitHub { + owner = "jhillyerd"; + repo = "plugin-git"; + rev = "v0.1"; + sha256 = "sha256-MfrRQdcj7UtIUgtqKjt4lqFLpA6YZgKjE03VaaypNzE"; + }; + + meta = with lib; { + description = "Git plugin for fish (similar to oh-my-zsh git)"; + homepage = "https://github.com/jhillyerd/plugin-git"; + license = licenses.mit; + maintainers = with maintainers; [ unsolvedcypher ]; + }; +}