1{ lib, buildFishPlugin, fetchFromGitHub }:
2
3buildFishPlugin rec {
4 pname = "fishtape";
5 version = "2.1.3";
6
7 src = fetchFromGitHub {
8 owner = "jorgebucaran";
9 repo = "fishtape";
10 rev = version;
11 sha256 = "0dxcyhs2shhgy5xnwcimqja8vqsyk841x486lgq13i3y1h0kp2kd";
12 };
13
14 checkFunctionDirs = [ "./" ]; # fishtape is introspective
15 checkPhase = ''
16 rm test/tty.fish # test expects a tty
17 fishtape test/*.fish
18 '';
19
20 preInstall = ''
21 # move the function script in the proper sub-directory
22 mkdir functions
23 mv fishtape.fish functions/
24 '';
25
26 meta = {
27 description = "TAP-based test runner for Fish";
28 homepage = "https://github.com/jorgebucaran/fishtape";
29 license = lib.licenses.mit;
30 maintainers = with lib.maintainers; [ pacien ];
31 };
32}