nixpkgs/pkgs/shells/fish/plugins/pure.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
728 B
Nix
Raw Normal View History

{ lib, buildFishPlugin, fetchFromGitHub, git, fishtape_3 }:
2020-12-28 20:15:57 +00:00
buildFishPlugin rec {
pname = "pure";
2024-02-24 05:21:03 +00:00
version = "4.11.0";
2020-12-28 20:15:57 +00:00
src = fetchFromGitHub {
owner = "pure-fish";
2020-12-28 20:15:57 +00:00
repo = "pure";
rev = "v${version}";
2024-02-24 05:21:03 +00:00
hash = "sha256-8zxqPU9N5XGbKc0b3bZYkQ3yH64qcbakMsHIpHZSne4=";
2020-12-28 20:15:57 +00:00
};
nativeCheckInputs = [ git ];
checkPlugins = [ fishtape_3 ];
2020-12-28 20:15:57 +00:00
checkPhase = ''
rm tests/pure_tools_installer.test.fish
rm tests/_pure_uninstall.test.fish
2020-12-28 20:15:57 +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 ];
};
}