mirror of
https://github.com/nix-community/disko.git
synced 2026-11-30 13:03:28 +01:00
make-disk-image: fix build environment variables
This commit is contained in:
1 parent
26ade10051
commit
9503f225a4
1 file changed
+4
-1
@@ -148,8 +148,11 @@ in
|
||||
USAGE
|
||||
}
|
||||
|
||||
export out=$PWD
|
||||
# emulate basic build environment https://github.com/NixOS/nix/blob/fc83c6ccb3b300256508297bb92dd95e18a81213/src/nix-build/nix-build.cc#L541
|
||||
TMPDIR=$(mktemp -d); export TMPDIR
|
||||
export NIX_BUILD_TOP=$TMPDIR
|
||||
export out=$PWD
|
||||
export stdenv=${pkgs.stdenv}
|
||||
trap 'rm -rf "$TMPDIR"' EXIT
|
||||
cd "$TMPDIR"
|
||||
|
||||
|
||||
Reference in new issue
Block a user