diff options
author | pacien <pacien.trangirard@pacien.net> | 2020-12-28 21:15:08 +0100 |
---|---|---|
committer | pacien <pacien.trangirard@pacien.net> | 2021-01-04 18:51:11 +0100 |
commit | 3a987feae1ac17a4e1d373615610c83f4110628b (patch) | |
tree | 4713e100b9830a3b146a4875cc875b8901df1e62 /pkgs/shells/fish | |
parent | c083b27791daabbee7c4d67f5315ff5c877f1076 (diff) | |
download | nixpkgs-3a987feae1ac17a4e1d373615610c83f4110628b.tar nixpkgs-3a987feae1ac17a4e1d373615610c83f4110628b.tar.gz nixpkgs-3a987feae1ac17a4e1d373615610c83f4110628b.tar.bz2 nixpkgs-3a987feae1ac17a4e1d373615610c83f4110628b.tar.lz nixpkgs-3a987feae1ac17a4e1d373615610c83f4110628b.tar.xz nixpkgs-3a987feae1ac17a4e1d373615610c83f4110628b.tar.zst nixpkgs-3a987feae1ac17a4e1d373615610c83f4110628b.zip |
fishPlugins.fishtape: init at 2.1.3
Diffstat (limited to 'pkgs/shells/fish')
-rw-r--r-- | pkgs/shells/fish/plugins/default.nix | 2 | ||||
-rw-r--r-- | pkgs/shells/fish/plugins/fishtape.nix | 32 |
2 files changed, 34 insertions, 0 deletions
diff --git a/pkgs/shells/fish/plugins/default.nix b/pkgs/shells/fish/plugins/default.nix index 95bf6504bbe..b6b5abb485d 100644 --- a/pkgs/shells/fish/plugins/default.nix +++ b/pkgs/shells/fish/plugins/default.nix @@ -4,4 +4,6 @@ lib.makeScope newScope (self: with self; { buildFishPlugin = callPackage ./build-fish-plugin.nix { }; + fishtape = callPackage ./fishtape.nix { }; + }) diff --git a/pkgs/shells/fish/plugins/fishtape.nix b/pkgs/shells/fish/plugins/fishtape.nix new file mode 100644 index 00000000000..326ff61c417 --- /dev/null +++ b/pkgs/shells/fish/plugins/fishtape.nix @@ -0,0 +1,32 @@ +{ lib, buildFishPlugin, fetchFromGitHub }: + +buildFishPlugin rec { + pname = "fishtape"; + version = "2.1.3"; + + src = fetchFromGitHub { + owner = "jorgebucaran"; + repo = "fishtape"; + rev = version; + sha256 = "0dxcyhs2shhgy5xnwcimqja8vqsyk841x486lgq13i3y1h0kp2kd"; + }; + + checkFunctionPath = [ "./" ]; # fishtape is introspective + checkPhase = '' + rm test/tty.fish # test expects a tty + fishtape test/*.fish + ''; + + preInstall = '' + # move the function script in the proper sub-directory + mkdir functions + mv fishtape.fish functions/ + ''; + + meta = { + description = "TAP-based test runner for Fish"; + homepage = "https://github.com/jorgebucaran/fishtape"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ pacien ]; + }; +} |