From 3a987feae1ac17a4e1d373615610c83f4110628b Mon Sep 17 00:00:00 2001 From: pacien Date: Mon, 28 Dec 2020 21:15:08 +0100 Subject: [PATCH] fishPlugins.fishtape: init at 2.1.3 --- pkgs/shells/fish/plugins/default.nix | 2 ++ pkgs/shells/fish/plugins/fishtape.nix | 32 +++++++++++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 pkgs/shells/fish/plugins/fishtape.nix diff --git a/pkgs/shells/fish/plugins/default.nix b/pkgs/shells/fish/plugins/default.nix index 95bf6504bbed..b6b5abb485d1 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 000000000000..326ff61c4174 --- /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 ]; + }; +}