Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ stdenv, lib, fetchFromGitHub }: 2 3stdenv.mkDerivation rec { 4 pname = "zplug"; 5 version = "2.4.2"; 6 7 src = fetchFromGitHub { 8 owner = "zplug"; 9 repo = pname; 10 rev = version; 11 sha256 = "0hci1pbs3k5icwfyfw5pzcgigbh9vavprxxvakg1xm19n8zb61b3"; 12 }; 13 14 strictDeps = true; 15 dontConfigure = true; 16 dontBuild = true; 17 dontPatch = true; 18 19 installPhase = '' 20 mkdir -p $out/share/zplug 21 cp -r $src/{autoload,base,bin,init.zsh,misc} $out/share/zplug/ 22 mkdir -p $out/share/man 23 cp -r $src/doc/man/* $out/share/man/ 24 ''; 25 26 meta = with lib; { 27 description = "A next-generation plugin manager for zsh"; 28 homepage = "https://github.com/zplug/zplug"; 29 license = licenses.mit; 30 maintainers = [ maintainers.s1341 ]; 31 mainProgram = "zplug-env"; 32 platforms = platforms.all; 33 }; 34}