nixpkgs/pkgs/shells/zsh/pure-prompt/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

31 lines
709 B
Nix
Raw Normal View History

2021-01-15 07:28:56 +01:00
{ lib, stdenv, fetchFromGitHub }:
2021-01-15 07:28:56 +01:00
with lib;
stdenv.mkDerivation rec {
pname = "pure-prompt";
2022-02-20 22:45:18 +01:00
version = "1.20.1";
src = fetchFromGitHub {
owner = "sindresorhus";
repo = "pure";
rev = "v${version}";
2022-02-20 22:45:18 +01:00
sha256 = "sha256-iuLi0o++e0PqK81AKWfIbCV0CTIxq2Oki6U2oEYsr68=";
};
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";
license = licenses.mit;
platforms = platforms.all;
maintainers = with maintainers; [ pacien pablovsky ];
};
}