mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-18 19:03:28 +00:00
go: document disabled flag
This commit is contained in:
parent
1a3de46417
commit
d511369fcc
@ -674,6 +674,7 @@ net = buildGoPackage rec {
|
|||||||
goPackageAliases = [ "code.google.com/p/go.net" ]; <co xml:id='ex-buildGoPackage-3' />
|
goPackageAliases = [ "code.google.com/p/go.net" ]; <co xml:id='ex-buildGoPackage-3' />
|
||||||
propagatedBuildInputs = [ goPackages.text ]; <co xml:id='ex-buildGoPackage-4' />
|
propagatedBuildInputs = [ goPackages.text ]; <co xml:id='ex-buildGoPackage-4' />
|
||||||
buildFlags = "--tags release"; <co xml:id='ex-buildGoPackage-5' />
|
buildFlags = "--tags release"; <co xml:id='ex-buildGoPackage-5' />
|
||||||
|
disabled = isGo13;<co xml:id='ex-buildGoPackage-6' />
|
||||||
};
|
};
|
||||||
</programlisting>
|
</programlisting>
|
||||||
</example>
|
</example>
|
||||||
@ -731,6 +732,18 @@ the following arguments are of special significance to the function:
|
|||||||
</para>
|
</para>
|
||||||
</callout>
|
</callout>
|
||||||
|
|
||||||
|
<callout arearefs='ex-buildGoPackage-6'>
|
||||||
|
<para>
|
||||||
|
If <varname>disabled</varname> is <literal>true</literal>,
|
||||||
|
nix will refuse to build this package.
|
||||||
|
</para>
|
||||||
|
<para>
|
||||||
|
In this example the package will not be built for go 1.3. The <literal>isGo13</literal>
|
||||||
|
is an utility function that returns <literal>true</literal> if go used to build the
|
||||||
|
package has version 1.3.x.
|
||||||
|
</para>
|
||||||
|
</callout>
|
||||||
|
|
||||||
</calloutlist>
|
</calloutlist>
|
||||||
|
|
||||||
</para>
|
</para>
|
||||||
|
Loading…
Reference in New Issue
Block a user