2020-12-28 21:15:57 +01:00
|
|
|
{ lib, buildFishPlugin, fetchFromGitHub, git, fishtape }:
|
|
|
|
|
|
|
|
buildFishPlugin rec {
|
|
|
|
pname = "pure";
|
2021-06-29 22:51:16 +02:00
|
|
|
version = "4.1.1";
|
2020-12-28 21:15:57 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2021-06-29 22:51:16 +02:00
|
|
|
owner = "pure-fish";
|
2020-12-28 21:15:57 +01:00
|
|
|
repo = "pure";
|
|
|
|
rev = "v${version}";
|
2021-06-29 22:51:16 +02:00
|
|
|
sha256 = "1x1h65l8582p7h7w5986sc9vfd7b88a7hsi68dbikm090gz8nlxx";
|
2020-12-28 21:15:57 +01:00
|
|
|
};
|
|
|
|
|
2021-06-29 22:51:16 +02:00
|
|
|
# The tests aren't passing either on the project's CI.
|
|
|
|
# The release notes of the program for v3.5.0 say:
|
|
|
|
# > Tests are going crazy at the moment, should be fixed once fishtape 3.0
|
|
|
|
# > is released, and we do the switch.
|
|
|
|
# This is tracked in https://github.com/pure-fish/pure/issues/272
|
|
|
|
# and https://github.com/pure-fish/pure/pull/275.
|
|
|
|
doCheck = false;
|
|
|
|
|
2020-12-28 21:15:57 +01:00
|
|
|
checkInputs = [ git ];
|
2021-01-05 17:30:52 +01:00
|
|
|
checkPlugins = [ fishtape ];
|
2020-12-28 21:15:57 +01:00
|
|
|
checkPhase = ''
|
|
|
|
# https://github.com/rafaelrinaldi/pure/issues/264
|
|
|
|
rm tests/_pure_string_width.test.fish
|
|
|
|
|
|
|
|
fishtape tests/*.test.fish
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Pretty, minimal and fast Fish prompt, ported from zsh";
|
|
|
|
homepage = "https://github.com/rafaelrinaldi/pure";
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = with lib.maintainers; [ pacien ];
|
|
|
|
};
|
|
|
|
}
|