From 59c1b6d0e770640758e8585f9bd1c8f98a59174a Mon Sep 17 00:00:00 2001 From: pacien Date: Mon, 28 Dec 2020 21:15:57 +0100 Subject: [PATCH] fishPlugins.pure: init at 3.4.2 --- pkgs/shells/fish/plugins/default.nix | 2 ++ pkgs/shells/fish/plugins/pure.nix | 29 ++++++++++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 pkgs/shells/fish/plugins/pure.nix diff --git a/pkgs/shells/fish/plugins/default.nix b/pkgs/shells/fish/plugins/default.nix index b6b5abb485d..42ba860e8c5 100644 --- a/pkgs/shells/fish/plugins/default.nix +++ b/pkgs/shells/fish/plugins/default.nix @@ -6,4 +6,6 @@ lib.makeScope newScope (self: with self; { fishtape = callPackage ./fishtape.nix { }; + pure = callPackage ./pure.nix { }; + }) diff --git a/pkgs/shells/fish/plugins/pure.nix b/pkgs/shells/fish/plugins/pure.nix new file mode 100644 index 00000000000..54af2e0663e --- /dev/null +++ b/pkgs/shells/fish/plugins/pure.nix @@ -0,0 +1,29 @@ +{ lib, buildFishPlugin, fetchFromGitHub, git, fishtape }: + +buildFishPlugin rec { + pname = "pure"; + version = "3.4.2"; + + src = fetchFromGitHub { + owner = "rafaelrinaldi"; + repo = "pure"; + rev = "v${version}"; + sha256 = "134sz3f98gb6z2vgd5kkm6dd8pka5gijk843c32s616w35y07sga"; + }; + + checkInputs = [ git ]; + checkFunctionPath = [ fishtape ]; + 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 ]; + }; +}