forked from mirrors/nixpkgs
Support renamed downloads for autoupdatable packages
svn path=/nixpkgs/trunk/; revision=22303
This commit is contained in:
parent
c6b5662b78
commit
1daa883f8c
|
@ -541,10 +541,11 @@ let inherit (builtins) head tail trace; in
|
|||
export PYTHONPATH=$PYTHONPATH''${PYTHONPATH:+:}$(toPythonPath $out)
|
||||
'') ["minInit" "addInputs" "defEnsureDir"];
|
||||
|
||||
fetchUrlFromSrcInfo = srcInfo: fetchurl {
|
||||
fetchUrlFromSrcInfo = srcInfo: fetchurl ({
|
||||
url = srcInfo.url;
|
||||
sha256 = srcInfo.hash;
|
||||
};
|
||||
} //
|
||||
(if (srcInfo ? downloadName) then {name = srcInfo.downloadName;} else {}));
|
||||
|
||||
fetchGitFromSrcInfo = srcInfo: fetchgit {
|
||||
url = srcInfo.url;
|
||||
|
|
Loading…
Reference in a new issue