diff --git a/pkgs/shells/fish/plugins/default.nix b/pkgs/shells/fish/plugins/default.nix index 485faa1c89b1..9d4b4253e6a8 100644 --- a/pkgs/shells/fish/plugins/default.nix +++ b/pkgs/shells/fish/plugins/default.nix @@ -21,6 +21,8 @@ lib.makeScope newScope (self: with self; { fifc = callPackage ./fifc.nix { }; + fish-bd = callPackage ./fish-bd.nix { }; + # Fishtape 2.x and 3.x aren't compatible, # but both versions are used in the tests of different other plugins. fishtape = callPackage ./fishtape.nix { }; diff --git a/pkgs/shells/fish/plugins/fish-bd.nix b/pkgs/shells/fish/plugins/fish-bd.nix new file mode 100644 index 000000000000..154fc6213389 --- /dev/null +++ b/pkgs/shells/fish/plugins/fish-bd.nix @@ -0,0 +1,26 @@ +{ + lib, + buildFishPlugin, + fetchFromGitHub, + gitUpdater, +}: +buildFishPlugin rec { + pname = "fish-bd"; + version = "1.3.3"; + + src = fetchFromGitHub { + owner = "0rax"; + repo = "fish-bd"; + rev = "v${version}"; + hash = "sha256-GeWjoakXa0t2TsMC/wpLEmsSVGhHFhBVK3v9eyQdzv0="; + }; + + passthru.updateScript = gitUpdater { rev-prefix = "v"; }; + + meta = { + description = "Fish plugin to quickly go back to a parent directory up in your current working directory tree"; + homepage = "https://github.com/0rax/fish-bd"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ anomalocaris ]; + }; +}