nixpkgs/doc
Doron Behar a82c8611ce
buildGoModule: don't inherit build hooks when building go-modules (#225349)
* buildGoModule: don't inherit postBuild hook when building go-modules

This is a slight revert of 5ce647b8bf
(#212800).

Inheriting these hooks in the `.go-modules` derivation can be confusing:
One doesn't expect them to run when generating the fixed output modules
derivation, but only on the main derivation. A `postBuild` hook that
adds some files to $out will cause a very hard to debug issue[1].

This commit adds support for a dedicated `modPostBuild` hook that will
be used only by the derivation building `.go-modules`. Additionally,
`go.section.md` now explains these attributes behavior better.

[1]:
https://discourse.nixos.org/t/cant-update-a-go-package-getting-go-inconsistent-vendoring/27063/6

Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
2023-04-22 11:08:54 +10:00
..
build-aux/pandoc-filters nixos/manual: remove md-to-db 2023-02-10 06:40:15 +01:00
builders tree-wide: buildFHSUserEnv -> buildFHSEnv 2023-04-16 10:15:13 +02:00
contributing Fix typo in coding-conventions.chapter.md 2023-04-11 21:05:56 +02:00
doc-support doc: Fix the function locations always pointing to master 2023-04-13 20:33:39 +02:00
functions doc,nixos/doc: unescape apostrophes 2022-12-27 17:13:47 +01:00
hooks nixos/manual: remove .title fenced divs 2023-02-10 06:40:00 +01:00
languages-frameworks buildGoModule: don't inherit build hooks when building go-modules (#225349) 2023-04-22 11:08:54 +10:00
old doc: fix typos 2022-12-17 18:21:48 -05:00
stdenv doc/stdenv: don't use name in examples, highlight preferring pname 2023-04-15 16:06:29 +02:00
using lib/customisation.overrideDerivation: propagate evaluation condition 2023-01-01 14:10:42 +01:00
.gitignore doc/.gitignore: add media 2023-04-13 12:24:04 -07:00
default.nix doc: use gitignoreSource 2023-02-07 13:58:34 +01:00
functions.xml doc/functions/generators: convert to CommonMark 2021-06-11 06:06:42 -07:00
Makefile nixos/manual: remove md-to-db 2023-02-10 06:40:15 +01:00
manpage-urls.json Remove unused reference 2023-04-09 21:56:55 +02:00
manual.xml doc: assign ids to many headings 2023-03-27 22:39:11 +02:00
overrides.css doc: Make callout marks in code unselectable 2020-01-14 15:24:57 +01:00
preface.chapter.md updating stable nixos version in preface. 2023-01-05 22:24:19 +00:00
README.md doc/README.md: Add more links 2021-03-06 12:35:33 +01:00
shell.nix doc: fix shell.nix (#109816) 2021-01-19 12:46:51 -05:00
style.css

Nixpkgs/doc

This directory houses the sources files for the Nixpkgs manual.

You can find the rendered documentation for Nixpkgs unstable on nixos.org.

Docs for Nixpkgs stable are also available.

If you want to contribute to the documentation, here's how to do it.

If you're only getting started with Nix, go to nixos.org/learn.