diff options
Diffstat (limited to 'pkgs/build-support/vm/windows/bootstrap.nix')
-rw-r--r-- | pkgs/build-support/vm/windows/bootstrap.nix | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pkgs/build-support/vm/windows/bootstrap.nix b/pkgs/build-support/vm/windows/bootstrap.nix index b2febf19a89e..47afce5b5a37 100644 --- a/pkgs/build-support/vm/windows/bootstrap.nix +++ b/pkgs/build-support/vm/windows/bootstrap.nix @@ -3,7 +3,7 @@ , samba, socat, vde2, cdrkit, pathsFromGraph }: -{ isoFile, productKey }: +{ isoFile, productKey, arch ? null }: with stdenv.lib; @@ -15,6 +15,9 @@ let mkCygwinImage = import ./cygwin-iso { inherit stdenv fetchurl runCommand python perl cdrkit pathsFromGraph; + arch = let + defaultArch = if stdenv.is64bit then "x86_64" else "i686"; + in if arch == null then defaultArch else arch; }; installer = import ./install { |