nixpkgs-suyu/pkgs/shells/zsh/pure-prompt/default.nix

31 lines
712 B
Nix
Raw Normal View History

{ stdenv, fetchFromGitHub }:
with stdenv.lib;
stdenv.mkDerivation rec {
pname = "pure-prompt";
2020-11-11 23:33:12 +01:00
version = "1.15.0";
src = fetchFromGitHub {
owner = "sindresorhus";
repo = "pure";
rev = "v${version}";
2020-11-11 23:33:12 +01:00
sha256 = "0r4y8bglwdq85dwlxh9sm23ppzy1z7i8kmjny5mx9css0likj8qv";
};
installPhase = ''
OUTDIR="$out/share/zsh/site-functions"
mkdir -p "$OUTDIR"
cp pure.zsh "$OUTDIR/prompt_pure_setup"
cp async.zsh "$OUTDIR/async"
'';
meta = {
description = "Pretty, minimal and fast ZSH prompt";
2020-08-12 19:50:50 +02:00
homepage = "https://github.com/sindresorhus/pure";
license = licenses.mit;
platforms = platforms.all;
maintainers = with maintainers; [ pacien pablovsky ];
};
}