Unverified Commit 5c65b894 authored by tomberek's avatar tomberek Committed by GitHub
Browse files

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

parents 91003669 47406c64
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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"