git.iko.soy/typeable/nixpkgs
on master help sign in
nixpkgs manual: mention preferLocalBuild and enableParallelBuilding
commitf727f815cb075f6ff466f8c8a02a275502709eec authorNikolay Amiantov <ab@fmap.me> dateThu 21 Jan 2016, 18:43 (11 years ago) parentf63db29
1 file changed+24
doc/stdenv.xml+24
doc/stdenv.xml+24
@@ -224,6 +224,30 @@ genericBuild
224224
225225</variablelist>
226226
227+<variablelist>
228+ <title>Variables affecting build properties</title>
229+
230+ <varlistentry>
231+ <term><varname>enableParallelBuilding</varname></term>
232+ <listitem><para>If set, <literal>stdenv</literal> will pass specific
233+ flags to <literal>make</literal> and other build tools to enable
234+ parallel building with up to <literal>build-cores</literal>
235+ workers.</para></listitem>
236+ </varlistentry>
237+
238+ <varlistentry>
239+ <term><varname>preferLocalBuild</varname></term>
240+ <listitem><para>If set, specifies that the package is so lightweight
241+ in terms of build operations (e.g. write a text file from a Nix string
242+ to the store) that there's no need to look for it in binary caches --
243+ it's faster to just build it locally. It also tells Hydra and other
244+ facilities that this package doesn't need to be exported in binary
245+ caches (noone would use it, after all).</para></listitem>
246+ </varlistentry>
247+
248+</variablelist>
249+
250+
227251</section>
228252
229253