···38383939- `python3Packages.bjoern` has been removed, as the upstream is unmaintained and it depends on a 14-year-old version of http-parser with numerous vulnerabilities.
40404141+- `buildGoModule` removes the compatibility layer of `CGO_ENABLED` not specified via `env`.
4242+ Specifying `CGO_ENABLED` directly now results in an error.
4343+4144- `buildGoModule` now warns if `<pkg>.passthru.overrideModAttrs` is lost during the overriding of its result packages.
42454346- `gentium` package now provides `Gentium-*.ttf` files, and not `GentiumPlus-*.ttf` files like before. The font identifiers `Gentium Plus*` are available in the `gentium-plus` package, and if you want to use the more recently updated package `gentium` [by sil](https://software.sil.org/gentium/), you should update your configuration files to use the `Gentium` font identifier.
+1-16
pkgs/build-support/go/module.nix
···1010 constructDrv = stdenv.mkDerivation;
1111 excludeDrvArgNames = [
1212 "overrideModAttrs"
1313- # Compatibility layer to the directly-specified CGO_ENABLED.
1414- # TODO(@ShamrockLee): Remove after Nixpkgs 25.05 branch-off
1515- "CGO_ENABLED"
1613 ];
1714 extendDrvArgs =
1815 finalAttrs:
···226223 GO111MODULE = "on";
227224 GOTOOLCHAIN = "local";
228225229229- CGO_ENABLED =
230230- args.env.CGO_ENABLED or (
231231- if args ? CGO_ENABLED then
232232- # Compatibility layer to the CGO_ENABLED attribute not specified as env.CGO_ENABLED
233233- # TODO(@ShamrockLee): Remove and convert to
234234- # CGO_ENABLED = args.env.CGO_ENABLED or go.CGO_ENABLED
235235- # after the Nixpkgs 25.05 branch-off.
236236- lib.warn
237237- "${finalAttrs.finalPackage.meta.position}: buildGoModule: specify CGO_ENABLED with env.CGO_ENABLED instead."
238238- args.CGO_ENABLED
239239- else
240240- go.CGO_ENABLED
241241- );
226226+ CGO_ENABLED = args.env.CGO_ENABLED or go.CGO_ENABLED;
242227 };
243228244229 GOFLAGS =