nixos-rebuild: fix --file with --build-host
This commit is contained in:
parent
80b560bc35
commit
47406c64bc
@ -307,6 +307,10 @@ nixBuild() {
|
|||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
|
if [[ -z $buildingAttribute ]]; then
|
||||||
|
instArgs+=("$buildFile")
|
||||||
|
fi
|
||||||
|
|
||||||
drv="$(runCmd nix-instantiate "${instArgs[@]}" "${extraBuildFlags[@]}")"
|
drv="$(runCmd nix-instantiate "${instArgs[@]}" "${extraBuildFlags[@]}")"
|
||||||
if [ -a "$drv" ]; then
|
if [ -a "$drv" ]; then
|
||||||
logVerbose "Running nix-copy-closure with these NIX_SSHOPTS: $SSHOPTS"
|
logVerbose "Running nix-copy-closure with these NIX_SSHOPTS: $SSHOPTS"
|
||||||
|
Loading…
Reference in New Issue
Block a user