fetchurl: allow adding meta info; fetchFrom*: add meta.homepage

The point of this is to be able to do `meta.homepage = src.meta.homepage;`
instead of the usual copy-paste for the packages that are hosted
on these hosting services.
This commit is contained in:
Jan Malakhovski
2015-05-24 14:26:39 +00:00
parent 59ab07351b
commit bdf32ed2ab
2 changed files with 14 additions and 6 deletions
+5
View File
@@ -76,6 +76,9 @@ in
, # If set, don't download the file, but write a list of all possible
# URLs (resulting from resolving mirror:// URLs) to $out.
showURLs ? false
, # Meta information, if any.
meta ? {}
}:
assert builtins.isList urls;
@@ -120,4 +123,6 @@ if (!hasHash) then throw "Specify hash for fetchurl fixed-output derivation: ${s
# Doing the download on a remote machine just duplicates network
# traffic, so don't do that.
preferLocalBuild = true;
inherit meta;
}