From 37ee6cef992c1a80e790a294b75db8c116be8bbb Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 21 Jun 2004 09:51:23 +0000 Subject: * Adapted nix-pull to use the new substitute mechanism. --- scripts/nix-prefetch-url.in | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'scripts/nix-prefetch-url.in') diff --git a/scripts/nix-prefetch-url.in b/scripts/nix-prefetch-url.in index 6a90e787c3f5..45b3ed7ee75c 100644 --- a/scripts/nix-prefetch-url.in +++ b/scripts/nix-prefetch-url.in @@ -25,13 +25,17 @@ test -e $tmpPath2 || mv $tmpPath1 $tmpPath2 # !!! race storeExpr=$( \ echo "(import @datadir@/nix/corepkgs/fetchurl) \ {url = $url; md5 = \"$hash\"; system = \"@system@\";}" \ - | nix-instantiate -) + | @bindir@/nix-instantiate -) # Realise it. -finalPath=$(nix-store -qnB --force-realise $storeExpr) +finalPath=$(@bindir@/nix-store -qnB --force-realise $storeExpr) echo "path is $finalPath" >&2 rm -rf $tmpPath2 || true echo $hash + +if test -n "$PRINT_PATH"; then + echo $finalPath +fi -- cgit 1.4.1