mirror of
https://github.com/NixOS/nix.git
synced 2025-12-10 11:01:03 +01:00
Make nix path-info follow the JSON guildelines
This commit is contained in:
parent
1ad13a1423
commit
5f73c6b416
9 changed files with 65 additions and 30 deletions
|
|
@ -18,7 +18,7 @@ outPath=$(nix-build dependencies.nix --no-out-link)
|
|||
|
||||
nix copy --to "file://$cacheDir" "$outPath"
|
||||
|
||||
readarray -t paths < <(nix path-info --all --json --json-format 2 --store "file://$cacheDir" | jq 'keys|sort|.[]' -r)
|
||||
readarray -t paths < <(nix path-info --all --json --json-format 2 --store "file://$cacheDir" | jq '.info|keys|sort|.[]' -r)
|
||||
[[ "${#paths[@]}" -eq 3 ]]
|
||||
for path in "${paths[@]}"; do
|
||||
[[ "$path" =~ -dependencies-input-0$ ]] \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue