mirror of
https://github.com/NixOS/nix
synced 2025-07-13 17:10:47 +02:00
* `nix-store --add-fixed' to preload the outputs of fixed-output
derivations. This is mostly to simplify the implementation of nix-prefetch-{url, svn}, which now work properly in setuid installations. * Enforce valid store names in `nix-store --add / --add-fixed'.
This commit is contained in:
parent
57d023a184
commit
c815aff21b
7 changed files with 152 additions and 57 deletions
|
@ -2,10 +2,4 @@
|
|||
|
||||
echo "downloading $url into $out"
|
||||
|
||||
prefetch=@storedir@/nix-prefetch-url-$outputHash
|
||||
if test -f "$prefetch"; then
|
||||
echo "using prefetched $prefetch";
|
||||
@coreutils@/mv $prefetch $out
|
||||
else
|
||||
@curl@ --fail --location --max-redirs 20 "$url" > "$out"
|
||||
fi
|
||||
@curl@ --fail --location --max-redirs 20 "$url" > "$out"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue