From d511369fcc0c524457ff01379afda96b3fe0f360 Mon Sep 17 00:00:00 2001 From: Luca Bruno Date: Mon, 18 May 2015 12:55:02 +0200 Subject: [PATCH] go: document disabled flag --- doc/language-support.xml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/doc/language-support.xml b/doc/language-support.xml index 5942fe01e2ed..da709b34a94b 100644 --- a/doc/language-support.xml +++ b/doc/language-support.xml @@ -674,6 +674,7 @@ net = buildGoPackage rec { goPackageAliases = [ "code.google.com/p/go.net" ]; propagatedBuildInputs = [ goPackages.text ]; buildFlags = "--tags release"; + disabled = isGo13; }; @@ -731,6 +732,18 @@ the following arguments are of special significance to the function: + + + If disabled is true, + nix will refuse to build this package. + + + In this example the package will not be built for go 1.3. The isGo13 + is an utility function that returns true if go used to build the + package has version 1.3.x. + + +