mirror of
https://github.com/nix-community/disko.git
synced 2026-11-30 13:03:28 +01:00
disk-image: Fix compatibility with nixpkgs unstable
Fixes #900 This was caused by https://github.com/NixOS/nixpkgs/pull/354535 originally. The breaking changes introduced there have been resolved by https://github.com/NixOS/nixpkgs/pull/360413, but one addition survived, which was the line `source $stdenv/setup`. Because we used `>` instead of `>>`, `saved-env` was overwritten, so even with the second PR, the script failed with the following error: /nix/store/pw...ykc-vm-run-stage2: line 16: stdenv: unbound variable Once this and the second PR mentioned above are merged, #903 will be unblocked.
This commit is contained in:
1 parent
b71e3faca9
commit
3faa300212
1 file changed
+1
-1
@@ -201,7 +201,7 @@ in
|
||||
done
|
||||
${installer}
|
||||
''}
|
||||
echo "export origBuilder=$origBuilder" > xchg/saved-env
|
||||
echo "export origBuilder=$origBuilder" >> xchg/saved-env
|
||||
${preVM}
|
||||
''}
|
||||
export postVM=${diskoLib.writeCheckedBash { inherit pkgs checked; } "postVM.sh" postVM}
|
||||
|
||||
Reference in new issue
Block a user