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
Revert "nixos/home-assistant: use override before overridePythonAttrs" #119191
Conversation
@@ -188,9 +183,13 @@ in { | |||
}; | |||
|
|||
package = mkOption { | |||
default = pkgs.home-assistant; | |||
default = pkgs.home-assistant.overridePythonAttrs (oldAttrs: { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This shouldn't use overridePythonAttrs
because that breaks the override
that occurs later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mweinelt
I agree with @dotlambda, overriding the default package with overridePythonAttrs
already proved problematic here:
f9bd8b1
I think we should use overrideAttrs
instead, like you did initially:
1050f14
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So is the idea to revert f9bd8b1 as well?
Apparently this also disabled checkPhase on the nixos test. https://logs.nix.ci/?key=nixos/nixpkgs.119276&attempt_id=cc9ad186-b19c-4ab8-b7cf-790ba45949e0 |
@mweinelt |
I don't think that's a problem, but we can override the package we use for the test. |
This reverts commit f9bd8b1.
No, the other way around. The module package has them disabled by default, if you just pass |
@dotlambda @sweber83 Is the state of this pr okay? I added another revert. |
Reverts #118719
This breaks patching the package, overriding is a mess.