From 068e58f4cbe61abe49e46d62ca82982d72a98586 Mon Sep 17 00:00:00 2001 From: Yueh-Shun Li Date: Fri, 3 Jul 2026 00:29:17 +0800 Subject: [PATCH] doc/fixed-point-arguments: make examples callPackage-compatible --- doc/build-helpers/fixed-point-arguments.chapter.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/doc/build-helpers/fixed-point-arguments.chapter.md b/doc/build-helpers/fixed-point-arguments.chapter.md index 8de6636083e2..190b14d52235 100644 --- a/doc/build-helpers/fixed-point-arguments.chapter.md +++ b/doc/build-helpers/fixed-point-arguments.chapter.md @@ -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 = [