2020-03-31 07:28:04 +00:00
|
|
|
{
|
|
|
|
stdenv,
|
|
|
|
lib,
|
|
|
|
fetchFromGitHub,
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "zplug";
|
|
|
|
version = "2.4.2";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "zplug";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
|
|
|
sha256 = "0hci1pbs3k5icwfyfw5pzcgigbh9vavprxxvakg1xm19n8zb61b3";
|
|
|
|
};
|
|
|
|
|
2022-05-06 18:39:28 +00:00
|
|
|
strictDeps = true;
|
2020-03-31 07:28:04 +00:00
|
|
|
dontConfigure = true;
|
|
|
|
dontBuild = true;
|
|
|
|
dontPatch = true;
|
|
|
|
|
|
|
|
installPhase = ''
|
2023-04-27 08:13:15 +00:00
|
|
|
mkdir -p $out/share/zplug
|
|
|
|
cp -r $src/{autoload,base,bin,init.zsh,misc} $out/share/zplug/
|
|
|
|
mkdir -p $out/share/man
|
|
|
|
cp -r $src/doc/man/* $out/share/man/
|
2020-03-31 07:28:04 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Next-generation plugin manager for zsh";
|
|
|
|
homepage = "https://github.com/zplug/zplug";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.s1341 ];
|
2022-05-05 00:46:39 +00:00
|
|
|
mainProgram = "zplug-env";
|
|
|
|
platforms = platforms.all;
|
2020-03-31 07:28:04 +00:00
|
|
|
};
|
|
|
|
}
|