3
0
Fork 0
forked from mirrors/nixpkgs

Support renamed downloads for autoupdatable packages

svn path=/nixpkgs/trunk/; revision=22303
This commit is contained in:
Michael Raskin 2010-06-17 05:19:26 +00:00
parent c6b5662b78
commit 1daa883f8c

View file

@ -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;