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:
parent
406cb56d06
commit
1d8c91b40e
1 changed files with 0 additions and 10 deletions
|
@ -168,16 +168,6 @@ if [[ -n "$flake" ]]; then
|
||||||
flakeAttr=darwinConfigurations.${flakeAttr}
|
flakeAttr=darwinConfigurations.${flakeAttr}
|
||||||
fi
|
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 [ "$action" != build ]; then
|
||||||
if [ -n "$flake" ]; then
|
if [ -n "$flake" ]; then
|
||||||
extraBuildFlags+=("--no-link")
|
extraBuildFlags+=("--no-link")
|
||||||
|
|
Loading…
Reference in a new issue