diff --git a/src/eval.rs b/src/eval.rs index f7c4dbb..c4f73ba 100644 --- a/src/eval.rs +++ b/src/eval.rs @@ -533,7 +533,11 @@ fn handle_non_by_name_attribute( // At this point, we completed two different checks for whether it's a `callPackage`. match (is_semantic_call_package, optional_syntactic_call_package) { // Something like ` = { }` - (_, None) | (false, Some(_)) => { + (false, None) + // Something like ` = pythonPackages.callPackage ...` + | (false, Some(_)) + // Something like ` = bar` where `bar = pkgs.callPackage ...` + | (true, None) => { // In all of these cases, it's not possible to migrate the package to // `pkgs/by-name`. NonApplicable