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

Provide functions directly from the flake lib toplevel #174

Merged
merged 1 commit into from
Sep 18, 2024
Merged

Conversation

akirak
Copy link
Member

@akirak akirak commented Sep 18, 2024

It's weird to call a function like (inputs.twist.lib { inherit lib; }).parseUsePackages. It's not introspective. Change the API so the user can inspect the functions under lib using nix eval .#lib --apply builtins.attrNames. All functions under lib should take a subset of pkgs.

@akirak akirak merged commit f97a6e2 into master Sep 18, 2024
4 checks passed
@akirak akirak deleted the flake-lib-api branch September 18, 2024 14:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant