We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 53a24f4 commit e31ace5Copy full SHA for e31ace5
1 file changed
pkgs/build-support/go/module.nix
@@ -63,20 +63,6 @@ let
63
GO111MODULE = "on";
64
GOTOOLCHAIN = "local";
65
66
- toExtension =
67
- overlay0:
68
- if lib.isFunction overlay0 then
69
- final: prev:
70
- if lib.isFunction (overlay0 prev) then
71
- # `overlay0` is `final: prev: { ... }`
72
- overlay0 final prev
73
- else
74
- # `overlay0` is `prev: { ... }`
75
- overlay0 prev
76
77
- # `overlay0` is `{ ... }`
78
- final: prev: overlay0;
79
-
80
in
81
(stdenv.mkDerivation (finalAttrs:
82
args
@@ -333,7 +319,7 @@ in
333
319
# Canonicallize `overrideModAttrs` as an attribute overlay.
334
320
# `passthru.overrideModAttrs` will be overridden
335
321
# when users want to override `goModules`.
336
- overrideModAttrs = toExtension overrideModAttrs;
322
+ overrideModAttrs = lib.toExtension overrideModAttrs;
337
323
} // passthru;
338
324
339
325
meta = {
0 commit comments