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:
Jörg Thalheim 2021-06-11 09:04:28 +02:00 committed by GitHub
commit 3fdff5f4b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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"