From ef5d61af7633dcea7e0b1c42fbef3d40532e2ab0 Mon Sep 17 00:00:00 2001 From: Timothy DeHerrera Date: Tue, 7 Jan 2020 13:05:38 -0700 Subject: [PATCH] pkgs#pure: init at 0e87bd8 --- flake.nix | 2 +- pkgs/default.nix | 1 + pkgs/shells/zsh/pure/default.nix | 28 ++++++++++++++++++++++++++++ 3 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 pkgs/shells/zsh/pure/default.nix diff --git a/flake.nix b/flake.nix index b545ae0..479f52d 100644 --- a/flake.nix +++ b/flake.nix @@ -28,7 +28,7 @@ in overlays; packages.x86_64-linux = { - inherit (pkgs) sddm-chili dejavu_nerdfont purs; + inherit (pkgs) sddm-chili dejavu_nerdfont purs pure; }; nixosModules = let diff --git a/pkgs/default.nix b/pkgs/default.nix index 6b6a37d..184797f 100644 --- a/pkgs/default.nix +++ b/pkgs/default.nix @@ -3,4 +3,5 @@ final: prev: { prev.callPackage ./applications/display-managers/sddm/themes/chili { }; dejavu_nerdfont = prev.callPackage ./data/fonts/dejavu-nerdfont { }; purs = prev.callPackage ./shells/zsh/purs { }; + pure = prev.callPackage ./shells/zsh/pure { }; } diff --git a/pkgs/shells/zsh/pure/default.nix b/pkgs/shells/zsh/pure/default.nix new file mode 100644 index 0000000..2e8d142 --- /dev/null +++ b/pkgs/shells/zsh/pure/default.nix @@ -0,0 +1,28 @@ +{ stdenv, fetchFromGitHub, openssl, pkgconfig, rustPlatform }: + +stdenv.mkDerivation rec { + name = "pure-${version}"; + version = "0e87bd8"; + + srcs = fetchFromGitHub { + owner = "sindresorhus"; + repo = "pure"; + rev = "0e87bd897bb67049329c55174dcc643926337b01"; + hash = "sha256-JytsTviVHphYnP5KTbSkbaiNeg2fMufYc6r0X0SQyqI="; + }; + + buildPhase = "true"; + + installPhase = '' + mkdir -p $out/share/zsh/plugins/pure + cp -r ./ $out/share/zsh/plugins/pure + ''; + + meta = with stdenv.lib; { + description = "Pretty, minimal and fast ZSH prompt"; + homepage = "https://github.com/sindresorhus/pure"; + maintainers = [ maintainers.nrdxp ]; + license = licenses.mit; + inherit version; + }; +}