···
tab settings so it’s asking for trouble.</para></listitem>
<listitem><para>Use <literal>lowerCamelCase</literal> for variable
21
-
names, not <literal>UpperCamelCase</literal>. TODO: naming of
23
-
<filename>all-packages.nix</filename>?</para></listitem>
21
+
names, not <literal>UpperCamelCase</literal>. Note, this rule does
22
+
not apply to package attribute names, which instead follow the rules
23
+
in <xref linkend="sec-package-naming"/>.</para></listitem>
<listitem><para>Function calls with attribute set arguments are
···
<listitem><para>The variable name used for the instantiated package
in <filename>all-packages.nix</filename>, and when passing it as a
223
-
dependency to other functions. This is what Nix expression authors
224
-
see. It can also be used when installing using <command>nix-env
225
-
-iA</command>.</para></listitem>
223
+
dependency to other functions. Typically this is called the
224
+
<emphasis>package attribute name</emphasis>. This is what Nix
225
+
expression authors see. It can also be used when installing using
226
+
<command>nix-env -iA</command>.</para></listitem>
<listitem><para>The filename for (the directory containing) the Nix
expression.</para></listitem>
···
Also append <literal>"unstable"</literal> to the name - e.g.,
<literal>"pkgname-unstable-2014-09-23"</literal>.</para></listitem>
262
-
<listitem><para>Dashes in the package name should be preserved
263
-
in new variable names, rather than converted to underscores
264
-
(which was convention up to around 2013 and most names
265
-
still have underscores instead of dashes) — e.g.,
266
-
<varname>http-parser</varname> instead of
267
-
<varname>http_parser</varname>.</para></listitem>
263
+
<listitem><para>Dashes in the package name should be preserved in
264
+
new variable names, rather than converted to underscores or camel
265
+
cased — e.g., <varname>http-parser</varname> instead of
266
+
<varname>http_parser</varname> or <varname>httpParser</varname>. The
267
+
hyphenated style is preferred in all three package
268
+
names.</para></listitem>
<listitem><para>If there are multiple versions of a package, this
should be reflected in the variable names in