2021-01-15 07:28:56 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub }:
|
2019-08-10 10:43:55 +02:00
|
|
|
|
2021-01-15 07:28:56 +01:00
|
|
|
with lib;
|
2019-08-10 10:43:55 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "pure-prompt";
|
2021-01-22 21:10:26 +01:00
|
|
|
version = "1.16.0";
|
2019-08-10 10:43:55 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "sindresorhus";
|
|
|
|
repo = "pure";
|
|
|
|
rev = "v${version}";
|
2021-01-22 21:10:26 +01:00
|
|
|
sha256 = "sha256-fnk4lLRASX7FFAovAiRd9sm4jNlnFIJ78UCzdsXYVfM=";
|
2019-08-10 10:43:55 +02: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 19:50:50 +02:00
|
|
|
homepage = "https://github.com/sindresorhus/pure";
|
2019-08-10 10:43:55 +02:00
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.all;
|
2020-05-09 06:21:37 +02:00
|
|
|
maintainers = with maintainers; [ pacien pablovsky ];
|
2019-08-10 10:43:55 +02:00
|
|
|
};
|
|
|
|
}
|