mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-06 02:06:46 +01:00
31 lines
709 B
Nix
31 lines
709 B
Nix
{ lib, stdenv, fetchFromGitHub }:
|
|
|
|
with lib;
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "pure-prompt";
|
|
version = "1.17.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "sindresorhus";
|
|
repo = "pure";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-WNixw2vVn1mBEDSeIFrWZHHUcX4TNgr+motBemBQfr0=";
|
|
};
|
|
|
|
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";
|
|
homepage = "https://github.com/sindresorhus/pure";
|
|
license = licenses.mit;
|
|
platforms = platforms.all;
|
|
maintainers = with maintainers; [ pacien pablovsky ];
|
|
};
|
|
}
|