1 { lib, stdenv, fetchFromGitHub, bash }:
3 # To make use of this derivation, use
4 # `programs.zsh.interactiveShellInit = "source ${pkgs.zsh-nix-shell}/share/zsh-nix-shell/nix-shell.plugin.zsh";`
6 stdenv.mkDerivation rec {
7 pname = "zsh-nix-shell";
10 src = fetchFromGitHub {
12 repo = "zsh-nix-shell";
14 sha256 = "sha256-Z6EYQdasvpl1P78poj9efnnLj7QQg13Me8x1Ryyw+dM=";
18 buildInputs = [ bash ];
20 install -D nix-shell.plugin.zsh --target-directory=$out/share/zsh-nix-shell
21 install -D scripts/* --target-directory=$out/share/zsh-nix-shell/scripts
25 description = "zsh plugin that lets you use zsh in nix-shell shell";
26 homepage = src.meta.homepage;
27 license = licenses.bsd3;
28 platforms = platforms.unix;
29 maintainers = with maintainers; [ aw ];