git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #90322 from pasqui23/zplg2

zplugin: init at 2.3

commit893c94b4b26d9f2650b8a0e9966ba3c3f1f9310e authorRyan Mulligan <ryan@ryantm.com> dateSat 31 Oct 2020, 07:34 (6 years ago) parent680d32079f4822
3 files changed+48
maintainers/maintainer-list.nix+6 pkgs/shells/zsh/zplugin/default.nix+40 pkgs/top-level/all-packages.nix+2
maintainers/maintainer-list.nix+6
@@ -6613,6 +6613,12 @@
66136613 githubId = 131844;
66146614 name = "Igor Pashev";
66156615 };
6616+ pasqui23 = {
6617+ email = "p3dimaria@hotmail.it";
6618+ github = "pasqui23";
6619+ githubId = 6931743;
6620+ name = "pasqui23";
6621+ };
66166622 patryk27 = {
66176623 email = "wychowaniec.patryk@gmail.com";
66186624 github = "Patryk27";
pkgs/shells/zsh/zplugin/default.nixnew file+40
@@ -0,0 +1,40 @@
1+{ stdenvNoCC, lib, fetchFromGitHub, installShellFiles }:
2+stdenvNoCC.mkDerivation rec {
3+ pname = "zplugin";
4+ version = "2.3";
5+ src = fetchFromGitHub {
6+ owner = "zdharma";
7+ repo = pname;
8+ rev = "v${version}";
9+ sha256 = "0qqv5p19s8jb06d6h55dm4acji9x2rpxb2ni3h7fb0q43iz6y85w";
10+ };
11+ # adapted from https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=zsh-zplugin-git
12+ dontBuild = true;
13+ nativeBuildInputs = [ installShellFiles ];
14+ installPhase = ''
15+ outdir="$out/share/$pname"
16+
17+ cd "$src"
18+
19+ # Zplugin's source files
20+ install -dm0755 "$outdir"
21+ install -m0644 zplugin{,-side,-install,-autoload}.zsh "$outdir"
22+ install -m0755 git-process-output.zsh "$outdir"
23+
24+ # Zplugin autocompletion
25+ installShellCompletion --zsh _zplugin
26+
27+ #TODO:Zplugin-module files
28+ # find zmodules/ -type d -exec install -dm 755 "{}" "$outdir/{}" \;
29+ # find zmodules/ -type f -exec install -m 744 "{}" "$outdir/{}" \;
30+
31+ '';
32+ #TODO:doc output
33+
34+ meta = with lib; {
35+ homepage = "https://github.com/zdharma/zplugin";
36+ description = "Flexible zsh plugin manager";
37+ license = licenses.mit;
38+ maintainers = with maintainers; [ pasqui23 ];
39+ };
40+}
pkgs/top-level/all-packages.nix+2
@@ -8412,6 +8412,8 @@ in
84128412
84138413 zplug = callPackage ../shells/zsh/zplug { };
84148414
8415+ zplugin = callPackage ../shells/zsh/zplugin {} ;
8416+
84158417 zsh-autoenv = callPackage ../tools/misc/zsh-autoenv { };
84168418
84178419 zsh-bd = callPackage ../shells/zsh/zsh-bd { };