My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/shells/zsh/agkozak-zsh-prompt/default.nix

32 lines
825 B

{ stdenvNoCC, lib, fetchFromGitHub }:
stdenvNoCC.mkDerivation rec {
pname = "agkozak-zsh-prompt";
version = "3.11.1";
src = fetchFromGitHub {
owner = "agkozak";
repo = "agkozak-zsh-prompt";
rev = "v${version}";
sha256 = "sha256-TOfAWxw1uIV0hKV9o4EJjOlp+jmGWCONDex86ipegOY=";
};
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 ];
};
}