about summary refs log tree commit diff
path: root/nixpkgs/pkgs/shells/zsh/zsh-nix-shell/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/shells/zsh/zsh-nix-shell/default.nix')
-rw-r--r--nixpkgs/pkgs/shells/zsh/zsh-nix-shell/default.nix25
1 files changed, 25 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/shells/zsh/zsh-nix-shell/default.nix b/nixpkgs/pkgs/shells/zsh/zsh-nix-shell/default.nix
new file mode 100644
index 000000000000..33d6c5a4a5cb
--- /dev/null
+++ b/nixpkgs/pkgs/shells/zsh/zsh-nix-shell/default.nix
@@ -0,0 +1,25 @@
+{ stdenv, lib, fetchFromGitHub }:
+
+stdenv.mkDerivation {
+  name = "zsh-nix-shell-unstable-2019-01-07";
+
+  src = fetchFromGitHub {
+    owner = "chisui";
+    repo = "zsh-nix-shell";
+    rev = "03a1487655c96a17c00e8c81efdd8555829715f8";
+    sha256 = "1avnmkjh0zh6wmm87njprna1zy4fb7cpzcp8q7y03nw3aq22q4ms";
+  };
+
+  installPhase = ''
+    mkdir -p "$out/share/zsh-nix-shell"
+    cp -r nix-shell.plugin.zsh scripts "$out/share/zsh-nix-shell"
+  '';
+
+  meta = with lib; {
+    description = "Zsh plugin to use Zsh as default nix-shell shell";
+    homepage = https://github.com/chisui/zsh-nix-shell;
+    license = licenses.bsd3;
+    maintainers = with maintainers; [ qyliss ];
+    platforms = platforms.unix;
+  };
+}