nixos-rebuild: fix --file with --build-host (#351667)

This commit is contained in:
tomberek 2024-11-19 01:03:16 -05:00 committed by GitHub
commit 5c65b89442
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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"