git.iko.soy/typeable/nixpkgs
on master help sign in
fishPlugins.fzf-fish: init at 5.6
commit74a66734cd4faa89773ff784f074cfae4ec05047 authorpacien <pacien.trangirard@pacien.net> dateTue 9 Mar 2021, 13:11 (6 years ago) parentd714580
2 files changed+36
pkgs/shells/fish/plugins/default.nix+2 pkgs/shells/fish/plugins/fzf-fish.nix+34
pkgs/shells/fish/plugins/default.nix+2
@@ -13,6 +13,8 @@ lib.makeScope newScope (self: with self; {
1313
1414 foreign-env = callPackage ./foreign-env { };
1515
16+ fzf-fish = callPackage ./fzf-fish.nix { };
17+
1618 pure = callPackage ./pure.nix { };
1719
1820})
pkgs/shells/fish/plugins/fzf-fish.nixnew file+34
@@ -0,0 +1,34 @@
1+{ lib, buildFishPlugin, fetchFromGitHub, fzf, clownfish, fishtape_3 }:
2+
3+buildFishPlugin rec {
4+ pname = "fzf.fish";
5+ version = "5.6";
6+
7+ src = fetchFromGitHub {
8+ owner = "PatrickF1";
9+ repo = "fzf.fish";
10+ rev = "v${version}";
11+ sha256 = "1b280n8bh00n4vkm19zrn84km52296ljlm1zhz95jgaiwymf2x73";
12+ };
13+
14+ checkInputs = [ fzf ];
15+ checkPlugins = [ clownfish fishtape_3 ];
16+ checkFunctionDirs = [ "./functions" ];
17+ checkPhase = ''
18+ # Disable git tests which inspect the project's git repo, which isn't
19+ # possible since we strip the impure .git from our build input
20+ rm -r tests/*git*
21+
22+ # Disable tests that are failing, probably because of our wrappers
23+ rm -r tests/search_shell_variables
24+
25+ fishtape tests/*/*.fish
26+ '';
27+
28+ meta = with lib; {
29+ description = "Augment your fish command line with fzf key bindings";
30+ homepage = "https://github.com/PatrickF1/fzf.fish";
31+ license = licenses.mit;
32+ maintainers = with maintainers; [ pacien ];
33+ };
34+}