mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-28 14:22:50 +03:00
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 New Issue
Block a user