From 198af78cb6bf6fb4e195e390bb79fa05926a85ce Mon Sep 17 00:00:00 2001 From: Philip Taron Date: Tue, 20 Aug 2024 06:49:36 -0700 Subject: [PATCH] nixpkgs-manual: fix build --- doc/languages-frameworks/go.section.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/languages-frameworks/go.section.md b/doc/languages-frameworks/go.section.md index e40b92f952b1..3100124e0ce5 100644 --- a/doc/languages-frameworks/go.section.md +++ b/doc/languages-frameworks/go.section.md @@ -91,7 +91,7 @@ To obtain the hash without external tools, set `vendorHash = lib.fakeHash;` and } ``` -### Overriding `goModules` (#buildGoModule-goModules-override) +### Overriding `goModules` {#buildGoModule-goModules-override} Overriding `.goModules` by calling `goModules.overrideAttrs` is unsupported. Still, it is possible to override the `vendorHash` (`goModules`'s `outputHash`) and the `pre`/`post` hooks for both the build and patch phases of the primary and `goModules` derivation. Alternatively, the primary derivation provides an overridable `passthru.overrideModAttrs` function to store the attribute overlay implicitly taken by `goModules.overrideAttrs`. Here's an example usage of `overrideModAttrs`: