@@ -138,12 +138,39 @@ meta-attributes</title>
138138
139139 <varlistentry>
140140 <term><varname>license</varname></term>
141− <listitem><para>The license for the package. One from the
142− attribute set defined in <link
143− xlink:href="https://github.com/NixOS/nixpkgs/blob/master/lib/licenses.nix">
144− <filename>nixpkgs/lib/licenses.nix</filename></link>. Example:
145− <literal>stdenv.lib.licenses.gpl3</literal>. For details, see
146− <xref linkend='sec-meta-license'/>.</para></listitem>
141+ <listitem>
142+ <para>
143+ The license, or licenses, for the package. One from the attribute set
144+ defined in <link
145+ xlink:href="https://github.com/NixOS/nixpkgs/blob/master/lib/licenses.nix">
146+ <filename>nixpkgs/lib/licenses.nix</filename></link>. At this moment
147+ using both a list of licenses and a single license is valid. If the
148+ license field is in the form of a list representation, then it means
149+ that parts of the package are licensed differently. Each license
150+ should preferably be referenced by their attribute. The non-list
151+ attribute value can also be a space delimited string representation of
152+ the contained attribute shortNames or spdxIds. The following are all valid
153+ examples:
154+ <itemizedlist>
155+ <listitem><para>Single license referenced by attribute (preferred)
156+ <literal>stdenv.lib.licenses.gpl3</literal>.
157+ </para></listitem>
158+ <listitem><para>Single license referenced by its attribute shortName (frowned upon)
159+ <literal>"gpl3"</literal>.
160+ </para></listitem>
161+ <listitem><para>Single license referenced by its attribute spdxId (frowned upon)
162+ <literal>"GPL-3.0"</literal>.
163+ </para></listitem>
164+ <listitem><para>Multiple licenses referenced by attribute (preferred)
165+ <literal>with stdenv.lib.licenses; [ asl20 free ofl ]</literal>.
166+ </para></listitem>
167+ <listitem><para>Multiple licenses referenced as a space delimited string of attribute shortNames (frowned upon)
168+ <literal>"asl20 free ofl"</literal>.
169+ </para></listitem>
170+ </itemizedlist>
171+ For details, see <xref linkend='sec-meta-license'/>.
172+ </para>
173+ </listitem>
147174 </varlistentry>
148175
149176 <varlistentry>