Merge pull request #153515 from thiagokokada/workaround-issue-144811

nixos-rebuild: do not resolve flake path
This commit is contained in:
Thiago Kenji Okada 2022-01-07 23:18:37 -03:00 committed by GitHub
commit 06235ce774
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 7 deletions

View File

@ -3,7 +3,6 @@
, coreutils
, gnused
, gnugrep
, jq
, nix
, lib
}:
@ -19,5 +18,5 @@ substituteAll {
nix_x86_64_linux = fallback.x86_64-linux;
nix_i686_linux = fallback.i686-linux;
nix_aarch64_linux = fallback.aarch64-linux;
path = lib.makeBinPath [ coreutils jq gnused gnugrep ];
path = lib.makeBinPath [ coreutils gnused gnugrep ];
}

View File

@ -343,11 +343,6 @@ if [[ -n $flake ]]; then
fi
fi
# Resolve the flake.
if [[ -n $flake ]]; then
flake=$(nix "${flakeFlags[@]}" flake metadata --json "${extraBuildFlags[@]}" "${lockFlags[@]}" -- "$flake" | jq -r .url)
fi
# Find configuration.nix and open editor instead of building.
if [ "$action" = edit ]; then
if [[ -z $flake ]]; then