From 34513330fcc124d7f204d4621cb71f3e42d59020 Mon Sep 17 00:00:00 2001 From: Notarin Steele <424c414e4b@gmail.com> Date: Sun, 8 Feb 2026 04:41:50 -0500 Subject: [PATCH] doc/stdenv: revise line in Fixed-point arguments of `mkDerivation` The line was in grammatical error or plain confusing, it has been revised to be grammatically correct, as well as revised to be a bit more technically correct, as well as useful to the reader. Fixes #488258 Co-authored-by: Robert Hensing --- doc/stdenv/stdenv.chapter.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/stdenv/stdenv.chapter.md b/doc/stdenv/stdenv.chapter.md index e4bc4ec516af..ce0dacb7148e 100644 --- a/doc/stdenv/stdenv.chapter.md +++ b/doc/stdenv/stdenv.chapter.md @@ -513,7 +513,7 @@ Unless set to `false`, some build systems with good support for parallel buildin ### Fixed-point arguments of `mkDerivation` {#mkderivation-recursive-attributes} -If you pass a function to `mkDerivation`, it will receive as its argument the final arguments, including the overrides when reinvoked via `overrideAttrs`. For example: +If you pass a function to `mkDerivation`, it will call the function with an argument that represents the final state of the package: the return value of the function itself, with any overrides applied, as the function is reinvoked by any `overrideAttrs` calls. For example: ```nix mkDerivation (finalAttrs: {