Merge pull request #330634 from r-ryantm/auto-update/circumflex
[NixPkgs.git] / pkgs / shells / zsh / zsh-nix-shell / default.nix
blobddd21683d3b13c8c4ebac00b4600d158e1b0e079
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";
8   version = "0.8.0";
10   src = fetchFromGitHub {
11     owner = "chisui";
12     repo = "zsh-nix-shell";
13     rev = "v${version}";
14     sha256 = "sha256-Z6EYQdasvpl1P78poj9efnnLj7QQg13Me8x1Ryyw+dM=";
15   };
17   strictDeps = true;
18   buildInputs = [ bash ];
19   installPhase = ''
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
22   '';
24   meta = with lib; {
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 ];
30   };