1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-25 06:31:14 +02:00

* Support for fixed-output hashes over directory trees (i.e., over the

NAR dump of the path).
This commit is contained in:
Eelco Dolstra 2005-02-22 21:14:41 +00:00
parent eda2c3c253
commit 3a2c3f0cf2
3 changed files with 35 additions and 16 deletions

View file

@ -25,7 +25,7 @@ if test -z "$hash"; then
tmpPath1=/tmp/nix-prefetch-url-$$ # !!! security?
fi
# Perform the checkout.
# Perform the download.
@curl@ --fail --location --max-redirs 20 "$url" > $tmpPath1
# Compute the hash.
@ -47,7 +47,7 @@ storeExpr=$( \
| @bindir@/nix-instantiate -)
# Realise it.
finalPath=$(@bindir@/nix-store -q --force-realise $storeExpr)
finalPath=$(@bindir@/nix-store -r $storeExpr)
if ! test -n "$QUIET"; then echo "path is $finalPath" >&2; fi