depot/third_party/nixpkgs/pkgs/shells/zsh/pure-prompt/default.nix
Default email 9c6ee729d6 Project import generated by Copybara.
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
2023-07-15 19:15:38 +02:00

31 lines
730 B
Nix

{ lib, stdenv, fetchFromGitHub }:
with lib;
stdenv.mkDerivation rec {
pname = "pure-prompt";
version = "1.22.0";
src = fetchFromGitHub {
owner = "sindresorhus";
repo = "pure";
rev = "v${version}";
sha256 = "sha256-TR4CyBZ+KoZRs9XDmWE5lJuUXXU1J8E2Z63nt+FS+5w=";
};
strictDeps = true;
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 ];
};
}