Skip to content

Commit

Permalink
clarify effect of explicit arguments
Browse files Browse the repository at this point in the history
Co-authored-by: Silvan Mosberger <github@infinisil.com>
  • Loading branch information
fricklerhandwerk and infinisil authored Mar 13, 2024
1 parent f8fd764 commit 241da6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/tutorials/callpackage.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ Hello, people!

This pattern is used widely in Nixpkgs:
For example, functions which represent Go programs often have a parameter `buildGoModule`.
It is common to find expressions like `callPackage ./go-program.nix { buildGoModule = buildGo116Module; }` to enforce a certain Go compiler version.
It is common to find expressions like `callPackage ./go-program.nix { buildGoModule = buildGo116Module; }` to change the default Go compiler version.
Nixpkgs is therefore not simply a huge library of pre-configured packages, but a collection of functions – package *recipes* – for customising packages and even entire ecosystems (for example "All Python packages using my custom interpreter") on the fly without duplicating code.

# Overrides
Expand Down

0 comments on commit 241da6f

Please sign in to comment.