build: update pmnsh to support cachix text/x-nix-narinfo responses

This commit is contained in:
Joe Bryan 2021-09-14 14:48:42 -04:00
parent 85b3dbcaa1
commit ebc656d372

View File

@ -61,7 +61,7 @@ buildnixdep () {
narinfo="$cache/${hash}.narinfo"
if curl -fLI "$narinfo"
then
url="$cache/$(curl -fL -H "Accept: application/json" "$narinfo"|jq -r '.url')"
url="$cache/$(curl -fL "$narinfo"|while IFS=: read k v; do if [ "$k" == "URL" ]; then echo $v; fi; done)"
echo Found $url
strip=0
hash=