about summary refs log tree commit diff
path: root/doc/stdenv/meta.chapter.md
diff options
context:
space:
mode:
authorRobert Hensing <robert@roberthensing.nl>2022-03-15 12:22:16 +0100
committerRobert Hensing <robert@roberthensing.nl>2022-05-02 08:49:33 +0200
commit0e00acafe9dc8bbd9e6b49d4341b6bf49b6defb8 (patch)
treec1b0fbd649b3788e040c4d7bfb1e615979c75be4 /doc/stdenv/meta.chapter.md
parentf066dddaa5cb6aea4429cd9386d4aa6f3963a889 (diff)
stdenv.mkDerivation: public -> finalPackage
Diffstat (limited to 'doc/stdenv/meta.chapter.md')
-rw-r--r--doc/stdenv/meta.chapter.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/stdenv/meta.chapter.md b/doc/stdenv/meta.chapter.md
index ca8dd1d824fe7..c1bb3f8863fc4 100644
--- a/doc/stdenv/meta.chapter.md
+++ b/doc/stdenv/meta.chapter.md
@@ -178,7 +178,7 @@ NixOS tests run in a VM, so they are slower than regular package tests. For more
 Alternatively, you can specify other derivations as tests. You can make use of
 the optional parameter to inject the correct package without
 relying on non-local definitions, even in the presence of `overrideAttrs`.
-Here that's `finalAttrs.public`, but you could choose a different name if
+Here that's `finalAttrs.finalPackage`, but you could choose a different name if
 `finalAttrs` already exists in your scope.
 
 `(mypkg.overrideAttrs f).passthru.tests` will be as expected, as long as the
@@ -190,7 +190,7 @@ all places.
 { stdenv, callPackage }:
 stdenv.mkDerivation (finalAttrs: {
   # ...
-  passthru.tests.example = callPackage ./example.nix { my-package = finalAttrs.public; }
+  passthru.tests.example = callPackage ./example.nix { my-package = finalAttrs.finalPackage; };
 })
 ```