doc/fixed-point-arguments: make examples callPackage-compatible

This commit is contained in:
Yueh-Shun Li
2026-07-07 19:24:41 +08:00
parent e97de7f4af
commit 068e58f4cb
@@ -3,6 +3,10 @@
`stdenv.mkDerivation` also accepts a [fixed-point function](#function-library-lib.fixedPoints.fix) instead of a plain attribute set:
```nix
{
stdenv,
fetchurl,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "hello";
version = "2.12";
@@ -37,6 +41,10 @@ Define a build helper named `mkLocalDerivation` that builds locally without usin
Use `lib.extendMkDerivation`:
```nix
{
lib,
stdenv,
}:
lib.extendMkDerivation {
constructDrv = stdenv.mkDerivation;
excludeDrvArgNames = [