From 27a75df26c9c9f00cb104b1e1c81482a0989ca24 Mon Sep 17 00:00:00 2001 From: Haseeb Majid Date: Sun, 3 Mar 2024 10:13:10 +0000 Subject: [PATCH] fishPlugin.fifc: init at 0.1.1 Co-authored-by: OTABI Tomoya --- pkgs/shells/fish/plugins/default.nix | 2 ++ pkgs/shells/fish/plugins/fifc.nix | 23 +++++++++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 pkgs/shells/fish/plugins/fifc.nix diff --git a/pkgs/shells/fish/plugins/default.nix b/pkgs/shells/fish/plugins/default.nix index 739e81995233..e3ccd9fb8a0f 100644 --- a/pkgs/shells/fish/plugins/default.nix +++ b/pkgs/shells/fish/plugins/default.nix @@ -19,6 +19,8 @@ lib.makeScope newScope (self: with self; { done = callPackage ./done.nix { }; + fifc = callPackage ./fifc.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/fifc.nix b/pkgs/shells/fish/plugins/fifc.nix new file mode 100644 index 000000000000..0b287d39ba2f --- /dev/null +++ b/pkgs/shells/fish/plugins/fifc.nix @@ -0,0 +1,23 @@ +{ + lib, + buildFishPlugin, + fetchFromGitHub, +}: +buildFishPlugin rec { + pname = "fifc"; + version = "0.1.1"; + + src = fetchFromGitHub { + owner = "gazorby"; + repo = "fifc"; + rev = "v${version}"; + hash = "sha256-p5E4Mx6j8hcM1bDbeftikyhfHxQ+qPDanuM1wNqGm6E="; + }; + + meta = with lib; { + description = "Fzf powers on top of fish completion engine and allows customizable completion rules"; + homepage = "https://github.com/gazorby/fifc"; + license = licenses.mit; + maintainers = with maintainers; [ hmajid2301 ]; + }; +}