summary refs log tree commit diff
path: root/pkgs/shells
diff options
context:
space:
mode:
authorMaximilian Bosch <maximilian@mbosch.me>2018-07-10 15:17:32 +0200
committerMaximilian Bosch <maximilian@mbosch.me>2018-08-05 23:01:18 +0200
commit1922b43b7ed61c2e638cd8374b48d5e5cf8b6c5d (patch)
treebf4362e27648c87c6ff92e8662dcbfcada7c8d19 /pkgs/shells
parentcc1d82196c4b8ac1dca0cd134659fd7f8ffd4b14 (diff)
downloadnixpkgs-1922b43b7ed61c2e638cd8374b48d5e5cf8b6c5d.tar
nixpkgs-1922b43b7ed61c2e638cd8374b48d5e5cf8b6c5d.tar.gz
nixpkgs-1922b43b7ed61c2e638cd8374b48d5e5cf8b6c5d.tar.bz2
nixpkgs-1922b43b7ed61c2e638cd8374b48d5e5cf8b6c5d.tar.lz
nixpkgs-1922b43b7ed61c2e638cd8374b48d5e5cf8b6c5d.tar.xz
nixpkgs-1922b43b7ed61c2e638cd8374b48d5e5cf8b6c5d.tar.zst
nixpkgs-1922b43b7ed61c2e638cd8374b48d5e5cf8b6c5d.zip
nix-zsh-completions: install nix.plugin.zsh and init.zsh as well
These files feature simple aliases and a nix-shell detector when using
`nix-shell --run zsh`. The package itself contains the completion scripts in
`$out/share/zsh/site-functions` (to keep it compatible with ZSH-only
setups) and the plugins in `$out/share/zsh/plugins` for oh-my-zsh.
Diffstat (limited to 'pkgs/shells')
-rw-r--r--pkgs/shells/zsh/nix-zsh-completions/default.nix11
1 files changed, 6 insertions, 5 deletions
diff --git a/pkgs/shells/zsh/nix-zsh-completions/default.nix b/pkgs/shells/zsh/nix-zsh-completions/default.nix
index 3c4c3fabfd1..4405902ec3e 100644
--- a/pkgs/shells/zsh/nix-zsh-completions/default.nix
+++ b/pkgs/shells/zsh/nix-zsh-completions/default.nix
@@ -15,15 +15,16 @@ stdenv.mkDerivation rec {
   };
 
   installPhase = ''
-    mkdir -p $out/share/zsh/site-functions
+    mkdir -p $out/share/zsh/{site-functions,plugins/nix}
     cp _* $out/share/zsh/site-functions
+    cp *.zsh $out/share/zsh/plugins/nix
   '';
 
-  meta = {
+  meta = with stdenv.lib; {
     homepage = https://github.com/spwhitt/nix-zsh-completions;
     description = "ZSH completions for Nix, NixOS, and NixOps";
-    license = stdenv.lib.licenses.bsd3;
-    platforms = stdenv.lib.platforms.all;
-    maintainers = [ stdenv.lib.maintainers.spwhitt stdenv.lib.maintainers.olejorgenb stdenv.lib.maintainers.hedning ];
+    license = licenses.bsd3;
+    platforms = platforms.all;
+    maintainers = with maintainers; [ spwhitt olejorgenb hedning ma27 ];
   };
 }