Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Overview of common expression patterns #918

Open
fricklerhandwerk opened this issue Feb 13, 2024 · 2 comments
Open

Overview of common expression patterns #918

fricklerhandwerk opened this issue Feb 13, 2024 · 2 comments
Labels
guide Topics for a new guides

Comments

@fricklerhandwerk
Copy link
Collaborator

The ecosystem is messy and people rightfully struggle to make sense of the various conventions for Nix expressions.

Make an overview of commonly encountered patterns and what they mean.

@lf- Thanks for reporting via https://tenforward.social/@noracodes/111926120933093851

@lf-
Copy link
Member

lf- commented Feb 13, 2024

cc @NoraCodes

@Qyriad
Copy link
Member

Qyriad commented Feb 14, 2024

This might also be a good place to overview common expression "entry points" and their expectations. nix-build expects a list or set of derivations, nix-shell expects a mkShell family derivation, both of those eval an expression optionally with autocall, but don't perform the package.nix/callPackage pattern, like most files one comes across in Nixpkgs. NixOS modules also have their own rules for the top-level formals and expect an attrset, etc.

@fricklerhandwerk fricklerhandwerk added the guide Topics for a new guides label Feb 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
guide Topics for a new guides
Projects
Status: No status
Development

No branches or pull requests

3 participants