diff options
author | lassulus <lass@aidsballs.de> | 2015-10-21 12:58:21 +0200 |
---|---|---|
committer | lassulus <lass@aidsballs.de> | 2015-10-21 12:58:21 +0200 |
commit | 72d0d68ed74c3041760e7ac93d8c45669191ba12 (patch) | |
tree | bcac7d871ac9499373d54a9711f92bd55d92ca47 /krebs/default.nix | |
parent | 1a553a24c5ec3660a754f36fc5db17b869ef9f85 (diff) | |
parent | 48abef60c172bdd5d15e574138824a89b23fa86d (diff) |
Merge remote-tracking branch 'cd/master'
Diffstat (limited to 'krebs/default.nix')
-rw-r--r-- | krebs/default.nix | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/krebs/default.nix b/krebs/default.nix index 5f1cfb95b..24d9e843b 100644 --- a/krebs/default.nix +++ b/krebs/default.nix @@ -130,9 +130,12 @@ let out = { nix_env=$(cat_src | sed -n ' s:.*\(/nix/store/[a-z0-9]*-nix-[0-9.]\+/bin/nix-env\).*:\1:p;T;q ') + coreutils=$(find /mnt/nix/store \ + -mindepth 1 -maxdepth 1 -type d -name '*-coreutils-*' \ + | head -n 1 | sed s:^/mnt::) echo nix-env is $nix_env sed -i ' - s:^NIX_PATH=:chroot $mountPoint /usr/bin/env &: + s:^NIX_PATH=:chroot $mountPoint '"$coreutils"'/bin/env &: s:^nix-env:'"$nix_env"': ' nixos-install |