Merge pull request #126513 from chkno/flakesFlags

nixos-rebuild: Pass flakes flags when doing local flakes build
This commit is contained in:
Domen Kožar 2021-06-11 00:27:10 +02:00 committed by GitHub
commit 6a1ca229f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -215,7 +215,7 @@ nixBuild() {
nixFlakeBuild() { nixFlakeBuild() {
if [ -z "$buildHost" ]; then if [ -z "$buildHost" ]; then
nix build "$@" --out-link "${tmpDir}/result" nix "${flakeFlags[@]}" build "$@" --out-link "${tmpDir}/result"
readlink -f "${tmpDir}/result" readlink -f "${tmpDir}/result"
else else
local attr="$1" local attr="$1"