buildGo{Module,Package}: remove disabled

This doesn't seem to have been used since pkgs/top-level/go-packages.nix was split up.
This commit is contained in:
zowoq 2021-01-10 09:10:49 +10:00
parent 1373f75002
commit 26117ed4b7
2 changed files with 2 additions and 12 deletions

View file

@ -27,9 +27,6 @@
# We want parallel builds by default
, enableParallelBuilding ? true
# Disabled flag
, disabled ? false
# Do not enable this without good reason
# IE: programs coupled with the compiler
, allowGoReference ? false
@ -243,9 +240,7 @@ let
[ lib.maintainers.kalbasit ];
};
});
in if disabled then
throw "${package.name} not supported for go ${go.meta.branch}"
else if (goPackagePath != null) then
in if (goPackagePath != null) then
throw "`goPackagePath` not needed with `buildGoModule`"
else
package

View file

@ -10,9 +10,6 @@
# We want parallel builds by default
, enableParallelBuilding ? true
# Disabled flag
, disabled ? false
# Go import path of the package
, goPackagePath
@ -249,7 +246,5 @@ let
platforms = go.meta.platforms or lib.platforms.all;
} // meta;
});
in if disabled then
throw "${package.name} not supported for go ${go.meta.branch}"
else
in
package