Unverified Commit ef38cc16 authored by Robert Hensing's avatar Robert Hensing Committed by GitHub
Browse files

doc/stdenv: revise line in Fixed-point arguments of `mkDerivation` (#488263)

parents 1b8daddb 34513330
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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: {