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
nixos/xmonad: add haskellPackages type #111451
Conversation
@@ -43,6 +43,7 @@ in { | |||
haskellPackages = mkOption { | |||
default = pkgs.haskellPackages; | |||
defaultText = "pkgs.haskellPackages"; | |||
type = types.package; |
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 does not look correct, it is supposed to be scope of haskell packages, not a single package:
nix-repl> lib.types.package.check pkgs.haskellPackages
false
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.
I think @jtojnar is correct here. This breaks the build for my configuration on master
(which works fine and does not even change this option from the default).
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.
Would be cool to have a type for package sets of this kind! But this type is indeed not correct and breaks eval for ppl, please revert it.
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.
sorry about that, this should fix it:
https://github.com/NixOS/nixpkgs/pull/111534/files
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.
I'm also hitting this issue. This should actually be a function which takes haskellPackages set and returns list of packages.
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.
@turboMaCk doesn't seem possible, because the module needs it for ghcWithPackages
for example. You might be thinking of the extraPackages
option instead.
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.
@roberth yes sorry I missed what line this is. extraPackages
is the function I've meant. That one internally uses this attribute.
#111581 reverted |
Motivation for this change
#76184
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)