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

Fix nix flake info error

Fixes "error: 'info' is not a recognised command'"

Issue: #307
This commit is contained in:
Martin Hardselius 2021-03-21 23:54:10 +01:00 committed by GitHub
parent 5c3146b75d
commit 93752a83ea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -126,7 +126,7 @@ if [ -n "$flake" ]; then
fi
if [ -n "$flake" ]; then
flake=$(nix "${flakeFlags[@]}" flake info --json "${extraBuildFlags[@]}" "${extraLockFlags[@]}" -- "$flake" | jq -r .url)
flake=$(nix "${flakeFlags[@]}" flake metadata --json "${extraBuildFlags[@]}" "${extraLockFlags[@]}" -- "$flake" | jq -r .url)
fi
if [ "$action" != build ] && [ -z "$flake" ]; then