diff --git a/doc/doc-support/lib-function-docs.nix b/doc/doc-support/lib-function-docs.nix index 4306fa9262785..61671bd39059b 100644 --- a/doc/doc-support/lib-function-docs.nix +++ b/doc/doc-support/lib-function-docs.nix @@ -74,7 +74,7 @@ } { name = "customisation"; - description = "Functions to customise (derivation-related) functions, derivatons, or attribute sets"; + description = "Functions to customise (derivation-related) functions, derivations, or attribute sets"; } { name = "meta"; diff --git a/pkgs/README.md b/pkgs/README.md index 052120faa089d..3a4b8b3cb67f5 100644 --- a/pkgs/README.md +++ b/pkgs/README.md @@ -628,8 +628,8 @@ buildGoModule rec { } ``` -Any derivaton can be specified as a test, even if it's in a different file. -Such a derivaton that implements a test can depend on the package under test, even in the presence of `overrideAttrs`. +Any derivation can be specified as a test, even if it's in a different file. +Such a derivation that implements a test can depend on the package under test, even in the presence of `overrideAttrs`. In the following example, `(my-package.overrideAttrs f).passthru.tests` will work as expected, as long as the definition of `tests` does not rely on the original `my-package` or overrides all occurrences of `my-package`: