2c76a4cb41
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
32 lines
825 B
Nix
32 lines
825 B
Nix
{ stdenvNoCC, lib, fetchFromGitHub }:
|
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
pname = "agkozak-zsh-prompt";
|
|
version = "3.11.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "agkozak";
|
|
repo = "agkozak-zsh-prompt";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-QDUI9EYflITttkX9Khij62ybBMYJwPfayqj+wr495mM=";
|
|
};
|
|
|
|
strictDeps = true;
|
|
dontConfigure = true;
|
|
dontBuild = true;
|
|
|
|
installPhase = ''
|
|
plugindir="$out/share/zsh/site-functions"
|
|
|
|
mkdir -p "$plugindir"
|
|
cp -r -- lib/*.zsh agkozak-zsh-prompt.plugin.zsh prompt_agkozak-zsh-prompt_setup "$plugindir"/
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "A fast, asynchronous Zsh prompt";
|
|
homepage = "https://github.com/agkozak/agkozak-zsh-prompt";
|
|
license = licenses.mit;
|
|
platforms = platforms.all;
|
|
maintainers = with maintainers; [ ambroisie ];
|
|
};
|
|
}
|