Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, buildFishPlugin, fetchFromGitHub, git, fishtape }:
2
3buildFishPlugin rec {
4 pname = "pure";
5 version = "4.1.1";
6
7 src = fetchFromGitHub {
8 owner = "pure-fish";
9 repo = "pure";
10 rev = "v${version}";
11 sha256 = "1x1h65l8582p7h7w5986sc9vfd7b88a7hsi68dbikm090gz8nlxx";
12 };
13
14 # The tests aren't passing either on the project's CI.
15 # The release notes of the program for v3.5.0 say:
16 # > Tests are going crazy at the moment, should be fixed once fishtape 3.0
17 # > is released, and we do the switch.
18 # This is tracked in https://github.com/pure-fish/pure/issues/272
19 # and https://github.com/pure-fish/pure/pull/275.
20 doCheck = false;
21
22 nativeCheckInputs = [ git ];
23 checkPlugins = [ fishtape ];
24 checkPhase = ''
25 # https://github.com/rafaelrinaldi/pure/issues/264
26 rm tests/_pure_string_width.test.fish
27
28 fishtape tests/*.test.fish
29 '';
30
31 meta = {
32 description = "Pretty, minimal and fast Fish prompt, ported from zsh";
33 homepage = "https://github.com/rafaelrinaldi/pure";
34 license = lib.licenses.mit;
35 maintainers = with lib.maintainers; [ pacien ];
36 };
37}