From ebc656d372034bebbb206a79bf3eab640c1522f9 Mon Sep 17 00:00:00 2001 From: Joe Bryan Date: Tue, 14 Sep 2021 14:48:42 -0400 Subject: [PATCH] build: update pmnsh to support cachix text/x-nix-narinfo responses --- pkg/urbit/compat/poor-mans-nix-shell.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/urbit/compat/poor-mans-nix-shell.sh b/pkg/urbit/compat/poor-mans-nix-shell.sh index cc18fabc2..dddff0305 100644 --- a/pkg/urbit/compat/poor-mans-nix-shell.sh +++ b/pkg/urbit/compat/poor-mans-nix-shell.sh @@ -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=