mirror of
https://github.com/LnL7/nix-darwin.git
synced 2024-12-15 17:51:01 +00:00
Merge pull request #308 from hardselius/master
Fix nix flake info error
This commit is contained in:
commit
a7492a8c76
1 changed files with 7 additions and 1 deletions
|
@ -126,7 +126,13 @@ if [ -n "$flake" ]; then
|
|||
fi
|
||||
|
||||
if [ -n "$flake" ]; then
|
||||
flake=$(nix "${flakeFlags[@]}" flake info --json "${extraBuildFlags[@]}" "${extraLockFlags[@]}" -- "$flake" | jq -r .url)
|
||||
if nix "${flakeFlags[@]}" flake metadata --version &>/dev/null; then
|
||||
cmd=metadata
|
||||
else
|
||||
cmd=info
|
||||
fi
|
||||
|
||||
flake=$(nix "${flakeFlags[@]}" flake "$cmd" --json "${extraBuildFlags[@]}" "${extraLockFlags[@]}" -- "$flake" | jq -r .url)
|
||||
fi
|
||||
|
||||
if [ "$action" != build ] && [ -z "$flake" ]; then
|
||||
|
|
Loading…
Reference in a new issue