-
Notifications
You must be signed in to change notification settings - Fork 333
[feat] bump nixpkgs - allow cabal-install 3.12 #4183
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
Changes from all commits
5a73cb3
e2e17af
7fc280f
e9e5d20
5f9117b
cf6e349
b8c305b
88fdf5a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -74,3 +74,4 @@ program-options | |
| allow-newer: | ||
| , proto-lens-protoc:base | ||
| , proto-lens-protoc:ghc | ||
| , proto-lens-setup:Cabal | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -13,7 +13,7 @@ build-type: Custom | |
| custom-setup | ||
| setup-depends: | ||
| , base | ||
| , Cabal | ||
| , Cabal >=3.12 | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why is this constraint needed?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. because otherwise cabal multi-repl doesn't work.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. should I put a note there?
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Isn't there only one version of Cabal available in the nix env? The project as is doesn't depend on cabal multi-repl right?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. in theory yes, in practice no, Cabal is a boot library and hence belongs to the GHC, hence nixpkgs installs two versions, 3.12 and 3.10 (which comes with GHC and cannot be removed), that then leads to proto-lens tool to select the wrong (old) version because it is actually constrained to Cabal <3.12 for no particular reason. It's all a bit messed up, if we had purely nixpkgs deps, then this wouldn't cause any issues because cabal doesn't actually care about how these deps have been installed...
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is the reason why cabal multi-repl is not enabled by default in HLS. By fixing this for us though, it removes the bug wrt duplicate constraints and it also improves HLS because of multi-repl. I think adding this constraint (which is provisioned by the nix env anyway) is worth this improvement. |
||
| , containers | ||
| , directory | ||
| , filepath | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -28,7 +28,7 @@ let | |
| docsPkgs = [ | ||
| pkgs.plantuml | ||
| pkgs.texlive.combined.scheme-full | ||
| (pkgs.python3.withPackages | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this is because nixpkgs not too long ago bumped the default python version and now many python packages are broken |
||
| (pkgs.python310.withPackages | ||
| (ps: with ps; [ | ||
| myst-parser | ||
| rst2pdf | ||
|
|
||
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 is because treefmt was very chatty about files it's not allowed to format