nixos-rebuild: fix --file with --build-host

This commit is contained in:
Justinas Stankevicius 2024-10-27 15:54:36 +02:00
parent 80b560bc35
commit 47406c64bc

View File

@ -307,6 +307,10 @@ nixBuild() {
esac
done
if [[ -z $buildingAttribute ]]; then
instArgs+=("$buildFile")
fi
drv="$(runCmd nix-instantiate "${instArgs[@]}" "${extraBuildFlags[@]}")"
if [ -a "$drv" ]; then
logVerbose "Running nix-copy-closure with these NIX_SSHOPTS: $SSHOPTS"