Skip to content

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