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

customization.scopeImportWith: init #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

jonringer
Copy link
Collaborator

Allow for use to use something similar to callPackage without it assuming it's a derivation.

Not intended to be used directly. Instead use callPackageWith or scopeImportWith
dependening on whether you're importing packages or non-package expressions.
*/
callGenericWith = funcName: continuation: autoArgs: fn: args:
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should go in a let clause, to avoid it being available in the customization attr set. However, for the sake of the diff, just keep it here

@@ -541,6 +557,7 @@ rec {
makeScope = newScope: f:
let self = f self // {
newScope = scope: newScope (self // scope);
scopeImport = scopeImportWith self;
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

autoCall I think would be less confusing in the long run

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