Disable Go-version-specific net packages to avoid accidental builds

and dependencies.
This commit is contained in:
Christian Theune 2016-01-01 13:10:44 +01:00
parent 1ac4839968
commit 94102eaa41
1 changed files with 2 additions and 0 deletions

View File

@ -70,6 +70,7 @@ let
"github.com/golang/net"
];
propagatedBuildInputs = [ text crypto ];
disabled = isGo14;
};
net_go14 = buildFromGitHub {
@ -85,6 +86,7 @@ let
"github.com/golang/net"
];
propagatedBuildInputs = [ text ];
disabled = !isGo14;
};
net = if isGo14 then net_go14 else net_go15;