buildGoModule: disallow goPackagePath

This is unnecessary with `buildGoModule`, it's usually cruft from `buildGoPackage` conversions.
This commit is contained in:
zowoq 2020-12-17 05:40:26 +10:00
parent 241227837b
commit 863706ef30

View file

@ -36,6 +36,9 @@
, meta ? {}
# Not needed with buildGoModule
, goPackagePath ? null
, ... }@args':
with builtins;
@ -242,5 +245,7 @@ let
});
in if disabled then
throw "${package.name} not supported for go ${go.meta.branch}"
else if (goPackagePath != null) then
throw "`goPackagePath` not needed with `buildGoModule`"
else
package