2019-08-10 09:43:55 +01:00
|
|
|
{ stdenv, fetchFromGitHub }:
|
|
|
|
|
|
|
|
with stdenv.lib;
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "pure-prompt";
|
2020-08-12 18:50:50 +01:00
|
|
|
version = "1.13.0";
|
2019-08-10 09:43:55 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "sindresorhus";
|
|
|
|
repo = "pure";
|
|
|
|
rev = "v${version}";
|
2020-08-12 18:50:50 +01:00
|
|
|
sha256 = "16q9v4c8lagp4vxm7qhagilqnwf1g4pbds56x5wfj4cwc0x2gclw";
|
2019-08-10 09:43:55 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
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 18:50:50 +01:00
|
|
|
homepage = "https://github.com/sindresorhus/pure";
|
2019-08-10 09:43:55 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.all;
|
2020-05-09 05:21:37 +01:00
|
|
|
maintainers = with maintainers; [ pacien pablovsky ];
|
2019-08-10 09:43:55 +01:00
|
|
|
};
|
|
|
|
}
|