summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2017-12-06 00:08:40 +0100
committerlassulus <lassulus@lassul.us>2017-12-06 00:08:40 +0100
commit1d6525a0050509ba1aa0b9ab66b8eb84946b8652 (patch)
tree28408aaa6529d38cd76ffbe61136ae4f004a3a56
parent19781ae7a4897c8f67e98ac6c57b75bb0c3d06b4 (diff)
parent7b38d1a8219ff7cfa39202ff17f1c92bd799c9b0 (diff)
Merge remote-tracking branch 'ni/master'
-rw-r--r--krebs/5pkgs/simple/stockholm/default.nix4
-rw-r--r--shell.nix3
2 files changed, 1 insertions, 6 deletions
diff --git a/krebs/5pkgs/simple/stockholm/default.nix b/krebs/5pkgs/simple/stockholm/default.nix
index da07c8120..5705f086d 100644
--- a/krebs/5pkgs/simple/stockholm/default.nix
+++ b/krebs/5pkgs/simple/stockholm/default.nix
@@ -120,10 +120,6 @@
. ${init.proxy "install" opts}
- # Reset PATH because we need access to nixos-install.
- # TODO provide nixos-install instead of relying on prepare.sh
- export PATH="$OLD_PATH"
-
# these variables get defined by nix-shell (i.e. nix-build) from
# XDG_RUNTIME_DIR and reference the wrong directory (/run/user/0),
# which only exists on / and not at /mnt.
diff --git a/shell.nix b/shell.nix
index 6c6b7cad7..bfdf1b3ca 100644
--- a/shell.nix
+++ b/shell.nix
@@ -5,14 +5,13 @@ let
in pkgs.stdenv.mkDerivation {
name = "stockholm";
shellHook = /* sh */ ''
- export OLD_PATH="$PATH"
export NIX_PATH=stockholm=${toString ./.}:nixpkgs=${toString <nixpkgs>}
if test -e /nix/var/nix/daemon-socket/socket; then
export NIX_REMOTE=daemon
fi
export PATH=${lib.makeBinPath [
pkgs.stockholm
- ]}
+ ]}''${PATH+:$PATH}
eval "$(declare -F | ${pkgs.gnused}/bin/sed s/declare/unset/)"
shopt -u no_empty_cmd_completion