go: add disabled flag for packages

This commit is contained in:
Luca Bruno
2015-05-18 12:46:22 +02:00
parent 81c115ba99
commit a43bd6bbcd
2 changed files with 10 additions and 1 deletions

View File

@@ -2,6 +2,9 @@
{ name, buildInputs ? []
# Disabled flag
, disabled ? false
# Go import path of the package
, goPackagePath
@@ -15,6 +18,8 @@
, meta ? {}, ... } @ args':
if disabled then throw "${name} not supported for go ${go.meta.branch}" else
let
args = lib.filterAttrs (name: _: name != "extraSrcs") args';
in