2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub }:
|
2020-05-29 06:06:01 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
with lib;
|
2020-05-29 06:06:01 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "pure-prompt";
|
2023-02-02 18:25:31 +00:00
|
|
|
version = "1.21.0";
|
2020-05-29 06:06:01 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "sindresorhus";
|
|
|
|
repo = "pure";
|
|
|
|
rev = "v${version}";
|
2023-02-02 18:25:31 +00:00
|
|
|
sha256 = "sha256-YfasTKCABvMtncrfoWR1Su9QxzCqPED18/BTXaJHttg=";
|
2020-05-29 06:06:01 +00:00
|
|
|
};
|
|
|
|
|
2022-05-18 14:49:53 +00:00
|
|
|
strictDeps = true;
|
2020-05-29 06:06:01 +00: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-20 17:08:02 +00:00
|
|
|
homepage = "https://github.com/sindresorhus/pure";
|
2020-05-29 06:06:01 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = with maintainers; [ pacien pablovsky ];
|
|
|
|
};
|
|
|
|
}
|