From 61e8781e600a916e51fd663c4d8cd5d93bb894cb Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sun, 24 Nov 2019 20:39:26 +0100 Subject: persistent-nix-shell --- nix/persistent-nix-shell.nix | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 nix/persistent-nix-shell.nix (limited to 'nix/persistent-nix-shell.nix') diff --git a/nix/persistent-nix-shell.nix b/nix/persistent-nix-shell.nix new file mode 100644 index 0000000..7b371c6 --- /dev/null +++ b/nix/persistent-nix-shell.nix @@ -0,0 +1,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 + ''; +} -- cgit v1.2.3