summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorMaximilian Bosch <maximilian@mbosch.me>2020-04-07 01:53:50 +0200
committerGitHub <noreply@github.com>2020-04-07 01:53:50 +0200
commit183aeb2df252e6ace695b88b9c543d8178eeb0f9 (patch)
treee78d851c41bfb3a05793b7cea8d741101c4ce95d /pkgs
parent3e0a8ba8d3c4e55d70fc32b17dc7a6779af0f9f4 (diff)
parentf4e273dbacce77d6ab9c1cd0beb6f6d7580ae663 (diff)
downloadnixpkgs-183aeb2df252e6ace695b88b9c543d8178eeb0f9.tar
nixpkgs-183aeb2df252e6ace695b88b9c543d8178eeb0f9.tar.gz
nixpkgs-183aeb2df252e6ace695b88b9c543d8178eeb0f9.tar.bz2
nixpkgs-183aeb2df252e6ace695b88b9c543d8178eeb0f9.tar.lz
nixpkgs-183aeb2df252e6ace695b88b9c543d8178eeb0f9.tar.xz
nixpkgs-183aeb2df252e6ace695b88b9c543d8178eeb0f9.tar.zst
nixpkgs-183aeb2df252e6ace695b88b9c543d8178eeb0f9.zip
Merge pull request #84520 from herrwiese/for-master/zsh-nix-shell
zsh-nix-shell: init at (unstable-)2019-12-20
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/shells/zsh/zsh-nix-shell/default.nix29
-rw-r--r--pkgs/top-level/all-packages.nix2
2 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/shells/zsh/zsh-nix-shell/default.nix b/pkgs/shells/zsh/zsh-nix-shell/default.nix
new file mode 100644
index 00000000000..c424cc33483
--- /dev/null
+++ b/pkgs/shells/zsh/zsh-nix-shell/default.nix
@@ -0,0 +1,29 @@
+{ stdenv, fetchFromGitHub, pkgs }:
+
+# To make use of this derivation, use
+# `programs.zsh.interactiveShellInit = "source ${pkgs.zsh-nix-shell}/share/zsh-nix-shell/nix-shell.plugin.zsh";`
+
+stdenv.mkDerivation rec {
+  pname = "zsh-nix-shell-unstable";
+  version = "2019-12-20";
+
+  src = fetchFromGitHub {
+    owner = "chisui";
+    repo = "zsh-nix-shell";
+    rev = "a65382a353eaee5a98f068c330947c032a1263bb";
+    sha256 = "0l41ac5b7p8yyjvpfp438kw7zl9dblrpd7icjg1v3ig3xy87zv0n";
+  };
+
+  installPhase = ''
+    install -D nix-shell.plugin.zsh --target-directory=$out/share/zsh-nix-shell
+    install -D scripts/* --target-directory=$out/share/zsh-nix-shell/scripts
+  '';
+
+  meta = with stdenv.lib; {
+    description = "zsh plugin that lets you use zsh in nix-shell shell";
+    homepage = src.meta.homepage;
+    license = licenses.bsd3;
+    platforms = platforms.unix;
+    maintainers = with maintainers; [ aw ];
+  };
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index 8a09deecf7e..9ea55f16d0c 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -7760,6 +7760,8 @@ in
 
   zsh-navigation-tools = callPackage ../tools/misc/zsh-navigation-tools { };
 
+  zsh-nix-shell = callPackage ../shells/zsh/zsh-nix-shell { };
+
   zsh-syntax-highlighting = callPackage ../shells/zsh/zsh-syntax-highlighting { };
 
   zsh-fast-syntax-highlighting = callPackage ../shells/zsh/zsh-fast-syntax-highlighting { };