diff --git a/pkgs/build-support/vm/default.nix b/pkgs/build-support/vm/default.nix index 25c89af32a4c..65687b72461f 100644 --- a/pkgs/build-support/vm/default.nix +++ b/pkgs/build-support/vm/default.nix @@ -237,10 +237,9 @@ rec { vmRunCommand = qemuCommand: writeText "vm-run" '' ${coreutils}/bin/mkdir xchg export > xchg/saved-env - PATH=${coreutils}/bin if [ -f "''${NIX_ATTRS_SH_FILE-}" ]; then - cp $NIX_ATTRS_JSON_FILE $NIX_ATTRS_SH_FILE xchg + ${coreutils}/bin/cp $NIX_ATTRS_JSON_FILE $NIX_ATTRS_SH_FILE xchg source "$NIX_ATTRS_SH_FILE" fi source $stdenv/setup @@ -258,7 +257,7 @@ rec { # Write the command to start the VM to a file so that the user can # debug inside the VM if the build fails (when Nix is called with # the -K option to preserve the temporary build directory). - cat > ./run-vm < ./run-vm <