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