summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzowoq <59103226+zowoq@users.noreply.github.com>2020-12-17 05:40:26 +1000
committerzowoq <59103226+zowoq@users.noreply.github.com>2020-12-17 16:38:13 +1000
commit863706ef307a4fa62370b7ee0db85f10a422e880 (patch)
treefc08c9a193517b91ffd67117a4993fc6b6c0629e
parent241227837ba3f7f58234de6c6dd7623055beda2c (diff)
buildGoModule: disallow goPackagePath
This is unnecessary with `buildGoModule`, it's usually cruft from `buildGoPackage` conversions.
-rw-r--r--pkgs/development/go-modules/generic/default.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/development/go-modules/generic/default.nix b/pkgs/development/go-modules/generic/default.nix
index 3714a1f6f0fb..58716d371709 100644
--- a/pkgs/development/go-modules/generic/default.nix
+++ b/pkgs/development/go-modules/generic/default.nix
@@ -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