From b85717adbea78ac456643c89a1ecd3a7629df121 Mon Sep 17 00:00:00 2001 From: Anomalocaridid <29845794+Anomalocaridid@users.noreply.github.com> Date: Mon, 10 Jun 2024 17:50:14 -0400 Subject: [PATCH] fishPlugins.fish-bd: init at 1.3.3 --- pkgs/shells/fish/plugins/default.nix | 2 ++ pkgs/shells/fish/plugins/fish-bd.nix | 26 ++++++++++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 pkgs/shells/fish/plugins/fish-bd.nix diff --git a/pkgs/shells/fish/plugins/default.nix b/pkgs/shells/fish/plugins/default.nix index 36a5a59e4398e..300a3dde076aa 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 0000000000000..154fc62133897 --- /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 ]; + }; +}