mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 07:05:13 +00:00
fbd67ea6c1
* zplug: update the output path This is a breaking change because the old behavior pollutes the nix profile root dir with all files in https://github.com/zplug/zplug and needs to be fixed. I created a corresponding PR in the home manager repo https://github.com/nix-community/home-manager/pull/3922. For non HM users, they will need to update their dependency on `${pkgs.zplug}/init.zsh` to `${pkgs.zplug}/share/zplug/init.zsh`. * Only add necessary files to $out/share/zplug. Also add the zplug man pages The LICENSE file is not in the 2.4.2 tag and there's not a release after that. I would skip adding the license $out/licenses/zplug in this commit. Reference: https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=zplug
35 lines
810 B
Nix
35 lines
810 B
Nix
{ stdenv, lib, fetchFromGitHub }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "zplug";
|
|
version = "2.4.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "zplug";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "0hci1pbs3k5icwfyfw5pzcgigbh9vavprxxvakg1xm19n8zb61b3";
|
|
};
|
|
|
|
strictDeps = true;
|
|
dontConfigure = true;
|
|
dontBuild = true;
|
|
dontPatch = true;
|
|
|
|
installPhase = ''
|
|
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/
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "A next-generation plugin manager for zsh";
|
|
homepage = "https://github.com/zplug/zplug";
|
|
license = licenses.mit;
|
|
maintainers = [ maintainers.s1341 ];
|
|
mainProgram = "zplug-env";
|
|
platforms = platforms.all;
|
|
};
|
|
}
|