2023-10-09 19:29:22 +00:00
|
|
|
{ lib, buildFishPlugin, fetchFromGitHub, git, fishtape_3 }:
|
2021-01-05 17:05:55 +00:00
|
|
|
|
|
|
|
buildFishPlugin rec {
|
|
|
|
pname = "pure";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "4.8.0";
|
2021-01-05 17:05:55 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2021-07-03 03:11:41 +00:00
|
|
|
owner = "pure-fish";
|
2021-01-05 17:05:55 +00:00
|
|
|
repo = "pure";
|
|
|
|
rev = "v${version}";
|
2023-10-09 19:29:22 +00:00
|
|
|
hash = "sha256-O8rC2uCuM3xUQPRap7XqyyAvO77hP+sqNM4mEQ7pZkw=";
|
2021-01-05 17:05:55 +00:00
|
|
|
};
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [ git ];
|
2023-10-09 19:29:22 +00:00
|
|
|
checkPlugins = [ fishtape_3 ];
|
2021-01-05 17:05:55 +00:00
|
|
|
checkPhase = ''
|
2023-10-09 19:29:22 +00:00
|
|
|
rm tests/pure_tools_installer.test.fish
|
|
|
|
rm tests/_pure_uninstall.test.fish
|
2021-01-05 17:05:55 +00:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|