buildGo{Module,Package}: remove disabled

This doesn't seem to have been used since pkgs/top-level/go-packages.nix was split up.
wip/yesman
zowoq 3 years ago
parent 1373f75002
commit 26117ed4b7
  1. 7
      pkgs/development/go-modules/generic/default.nix
  2. 7
      pkgs/development/go-packages/generic/default.nix

@ -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

@ -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

Loading…
Cancel
Save