Skip to content

Package parameters and overrides (with callPackage) #651

@fricklerhandwerk

Description

@fricklerhandwerk

Proposal

callPackage is used everywhere in Nixpkgs, but it's quite magical. It's very easy to use, so there are few instructions needed (rather a few good examples highlighting patterns where it makes particular sense to use it), but it requires understanding the rationale and inner workings.

Proposal

Import https://summer.nixos.org/blog/callpackage-a-tool-for-the-lazy/ (source: https://github.com/NixOS/nixos-summer/blob/main/content/blog/callpackage-a-tool-for-the-lazy.md) to nix.dev, and expand it to provide the motivation for why it exists at the beginning, and possibly some more details on newScope and friends at the end.

Willing to help?

Can help with reviews.

Priorities

Add 👍 to issues you find important.

Metadata

Metadata

Labels

tutorialTopics for new tutorials

Projects

Status

✅ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions