Skip to content

Commit

Permalink
Revert callPackage match
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben-PH committed Oct 28, 2024
1 parent d0de17f commit 5b4aae3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/eval.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 `<attr> = { }`
(_, None) | (false, Some(_)) => {
(false, None)
// Something like `<attr> = pythonPackages.callPackage ...`
| (false, Some(_))
// Something like `<attr> = 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
Expand Down

0 comments on commit 5b4aae3

Please sign in to comment.