1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2024-12-14 11:57:34 +00:00

darwin-rebuild: do not resolve flake path

Backport of c274d045ac

Fixes #549
This commit is contained in:
Michael Hoang 2024-11-03 12:30:47 +11:00
parent 406cb56d06
commit 1d8c91b40e

View file

@ -168,16 +168,6 @@ if [[ -n "$flake" ]]; then
flakeAttr=darwinConfigurations.${flakeAttr}
fi
if [ -n "$flake" ]; then
if nix "${flakeFlags[@]}" flake metadata --version &>/dev/null; then
cmd=metadata
else
cmd=info
fi
flake=$(nix "${flakeFlags[@]}" flake "$cmd" --json "${extraMetadataFlags[@]}" "${extraLockFlags[@]}" -- "$flake" | jq -r .url)
fi
if [ "$action" != build ]; then
if [ -n "$flake" ]; then
extraBuildFlags+=("--no-link")