summary refs log tree commit diff
path: root/pkgs/shells/fish
diff options
context:
space:
mode:
authorpacien <pacien.trangirard@pacien.net>2021-03-09 13:10:36 +0100
committerpacien <pacien.trangirard@pacien.net>2021-03-09 14:25:04 +0100
commitd7145807ada972df1ba22dba54a1fc4e4f23fd47 (patch)
treed0499c0de6e4c0829889c4cabc58cbc25fcd2b2c /pkgs/shells/fish
parent97b64bd65e08f8e6d937f9f360aa5365c356bb33 (diff)
downloadnixpkgs-d7145807ada972df1ba22dba54a1fc4e4f23fd47.tar
nixpkgs-d7145807ada972df1ba22dba54a1fc4e4f23fd47.tar.gz
nixpkgs-d7145807ada972df1ba22dba54a1fc4e4f23fd47.tar.bz2
nixpkgs-d7145807ada972df1ba22dba54a1fc4e4f23fd47.tar.lz
nixpkgs-d7145807ada972df1ba22dba54a1fc4e4f23fd47.tar.xz
nixpkgs-d7145807ada972df1ba22dba54a1fc4e4f23fd47.tar.zst
nixpkgs-d7145807ada972df1ba22dba54a1fc4e4f23fd47.zip
fishPlugins.fishtape_3: init at 3.0.1
Keeping fishtape 2.x and 3.x separate because they aren't compatible
with each other and are still both being used to test different packages.
Diffstat (limited to 'pkgs/shells/fish')
-rw-r--r--pkgs/shells/fish/plugins/default.nix3
-rw-r--r--pkgs/shells/fish/plugins/fishtape_3.nix25
2 files changed, 28 insertions, 0 deletions
diff --git a/pkgs/shells/fish/plugins/default.nix b/pkgs/shells/fish/plugins/default.nix
index 9d7043c9792..a61329dc4a7 100644
--- a/pkgs/shells/fish/plugins/default.nix
+++ b/pkgs/shells/fish/plugins/default.nix
@@ -6,7 +6,10 @@ lib.makeScope newScope (self: with self; {
 
   clownfish = callPackage ./clownfish.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 { };
+  fishtape_3 = callPackage ./fishtape_3.nix { };
 
   foreign-env = callPackage ./foreign-env { };
 
diff --git a/pkgs/shells/fish/plugins/fishtape_3.nix b/pkgs/shells/fish/plugins/fishtape_3.nix
new file mode 100644
index 00000000000..893e6d65ffb
--- /dev/null
+++ b/pkgs/shells/fish/plugins/fishtape_3.nix
@@ -0,0 +1,25 @@
+{ lib, buildFishPlugin, fetchFromGitHub }:
+
+buildFishPlugin rec {
+  pname = "fishtape";
+  version = "3.0.1";
+
+  src = fetchFromGitHub {
+    owner = "jorgebucaran";
+    repo = "fishtape";
+    rev = version;
+    sha256 = "072a3qbk1lpxw53bxp91drsffylx8fbywhss3x0jbnayn9m8i7aa";
+  };
+
+  checkFunctionDirs = [ "./functions" ]; # fishtape is introspective
+  checkPhase = ''
+    fishtape tests/*.fish
+  '';
+
+  meta = with lib; {
+    description = "100% pure-Fish test runner";
+    homepage = "https://github.com/jorgebucaran/fishtape";
+    license = licenses.mit;
+    maintainers = with maintainers; [ pacien ];
+  };
+}