Merge pull request #126548 from NixOS/backport-126513-to-release-21.05
[Backport release-21.05] nixos-rebuild: Pass flakes flags when doing local flakes build
This commit is contained in:
commit
3fdff5f4b0
|
@ -216,7 +216,7 @@ nixBuild() {
|
|||
|
||||
nixFlakeBuild() {
|
||||
if [ -z "$buildHost" ]; then
|
||||
nix build "$@" --out-link "${tmpDir}/result"
|
||||
nix "${flakeFlags[@]}" build "$@" --out-link "${tmpDir}/result"
|
||||
readlink -f "${tmpDir}/result"
|
||||
else
|
||||
local attr="$1"
|
||||
|
|
Loading…
Reference in New Issue