fetchurl restricted: list nix-prefetch-url as well
svn path=/nixpkgs/trunk/; revision=21474
This commit is contained in:
parent
bf92619681
commit
3e1e56e10c
|
@ -91,7 +91,11 @@ _EOF_
|
|||
'';
|
||||
message_ = if message != "" then message else ''
|
||||
You have to download ${name_} from ${stdenv.lib.concatStringsSep " " urls_} yourself,
|
||||
and add it to the store using "nix-store --add-fixed ${hashAlgo_} ${name_}".
|
||||
and add it to the store using either
|
||||
nix-store --add-fixed ${hashAlgo_} ${name_}
|
||||
or
|
||||
${if hashAlgo_ != "sha256" then "NIX_HASH_ALGO=${hashAlgo_} " else
|
||||
""}nix-prefetch-url file://path/to/${name_}
|
||||
'';
|
||||
}
|
||||
else {
|
||||
|
@ -119,4 +123,4 @@ else {
|
|||
"NIX_HASHED_MIRRORS"
|
||||
] ++ (map (site: "NIX_MIRRORS_${site}") sites);
|
||||
})
|
||||
)
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue