mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-17 01:24:47 +00:00
apple-sdk: fix JSON handling in lock-sdk-deps.sh
This was omitting the SDK version from the structure, probably due to refactors in response to my own reviews on the SDK rework PR. Oops!
This commit is contained in:
parent
05cf0c40b8
commit
29e87ecdd4
@ -60,7 +60,7 @@ for package in "${packages[@]}"; do
|
|||||||
|
|
||||||
packageHash=$(nix --extra-experimental-features nix-command hash path "$package-$packageTag")
|
packageHash=$(nix --extra-experimental-features nix-command hash path "$package-$packageTag")
|
||||||
|
|
||||||
pkgsjson="{\"$package\": {\"version\": \"$packageVersion\", \"hash\": \"$packageHash\"}}"
|
pkgsjson="{\"$sdkVersion\": {\"$package\": {\"version\": \"$packageVersion\", \"hash\": \"$packageHash\"}}}"
|
||||||
|
|
||||||
echo " - Locking $package to version $packageVersion with hash '$packageHash'"
|
echo " - Locking $package to version $packageVersion with hash '$packageHash'"
|
||||||
jq --argjson pkg "$pkgsjson" -S '. * $pkg' "$lockfile" | sponge "$lockfile"
|
jq --argjson pkg "$pkgsjson" -S '. * $pkg' "$lockfile" | sponge "$lockfile"
|
||||||
|
Loading…
Reference in New Issue
Block a user