summaryrefslogtreecommitdiff
path: root/nix/persistent-nix-shell.nix
blob: 7b371c685d1a84932973ca8e902760e5b77256b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{ stdenv
, zsh
}:

stdenv.mkDerivation rec {
  pname = "persistent-nix-shell";
  version = "0.1";
  src = ../persistent-nix-shell;

  phases = [ "buildPhase" "installPhase" ];

  inherit zsh;

  buildPhase = ''
    substituteAll $src persistent-nix-shell
  '';

  installPhase = ''
    install -m 0755 -D -t $out/bin \
      persistent-nix-shell
  '';
}