From c45b5aba92cc6b7d7e3602335c97a084f2ed0144 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edward=20Tj=C3=B6rnhammar?= Date: Thu, 30 Apr 2015 13:46:31 +0200 Subject: [PATCH] Document the different license base cases --- doc/meta.xml | 39 +++++++++++++++++++++++++++++++++------ 1 file changed, 33 insertions(+), 6 deletions(-) diff --git a/doc/meta.xml b/doc/meta.xml index 14a01ccb3c07..b36f3915ec19 100644 --- a/doc/meta.xml +++ b/doc/meta.xml @@ -138,12 +138,39 @@ meta-attributes license - The license for the package. One from the - attribute set defined in - nixpkgs/lib/licenses.nix. Example: - stdenv.lib.licenses.gpl3. For details, see - . + + + The license, or licenses, for the package. One from the attribute set + defined in + nixpkgs/lib/licenses.nix. At this moment + using both a list of licenses and a single license is valid. If the + license field is in the form of a list representation, then it means + that parts of the package are licensed differently. Each license + should preferably be referenced by their attribute. The non-list + attribute value can also be a space delimited string representation of + the contained attribute shortNames or spdxIds. The following are all valid + examples: + + Single license referenced by attribute (preferred) + stdenv.lib.licenses.gpl3. + + Single license referenced by its attribute shortName (frowned upon) + "gpl3". + + Single license referenced by its attribute spdxId (frowned upon) + "GPL-3.0". + + Multiple licenses referenced by attribute (preferred) + with stdenv.lib.licenses; [ asl20 free ofl ]. + + Multiple licenses referenced as a space delimited string of attribute shortNames (frowned upon) + "asl20 free ofl". + + + For details, see . + +