diff options
author | Jan Malakhovski <oxij@oxij.org> | 2015-05-24 13:52:12 +0000 |
---|---|---|
committer | Jan Malakhovski <oxij@oxij.org> | 2015-05-24 14:26:39 +0000 |
commit | bdf32ed2ab1ed0f627a6217d85be942763c2bb1a (patch) | |
tree | 0ecc7adea436608c20754d58020886da282348d0 /pkgs/build-support/fetchurl | |
parent | 59ab07351b87ad1fbaf234f1a1109f82bee4e03e (diff) |
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.
Diffstat (limited to 'pkgs/build-support/fetchurl')
-rw-r--r-- | pkgs/build-support/fetchurl/default.nix | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/build-support/fetchurl/default.nix b/pkgs/build-support/fetchurl/default.nix index 0d7534e675878..b1dc6e7be31bd 100644 --- a/pkgs/build-support/fetchurl/default.nix +++ b/pkgs/build-support/fetchurl/default.nix @@ -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; } |