doc/python: explain better passthru note

Co-authored-by: Matt Sturgeon <matt@sturgeon.me.uk>
This commit is contained in:
Doron Behar
2026-04-29 08:55:46 +03:00
co-authored by Matt Sturgeon
parent 7dfebf9c96
commit bfa489d718
+2 -1
View File
@@ -244,7 +244,8 @@ See the [general documentation on fixed-point arguments](#chap-build-helpers-fin
::: {.note}
Some `buildPythonPackage`/`buildPythonApplication` arguments are passed down indirectly to `stdenv.mkDerivation` via `passthru`.
Therefore the final states of these attributes can be accessed via `finalAttrs.passthru.${name}`, and they can be overridden via [`<pkg>.overrideAttrs`](#sec-pkg-overrideAttrs) under the `passthru` attribute.
Therefore the final state of these attributes can be accessed via `finalAttrs.passthru.${name}`.
[`<pkg>.overrideAttrs`](#sec-pkg-overrideAttrs) can override them using the `passthru = prevAttrs.passthru // { foo = "bar"; }` pattern.
Such arguments include:
- `disabled`