!RbXGJhHMsnQcNIDFWN:nixos.org

Haskell in Nixpkgs/NixOS

723 Members
For discussions and questions about Haskell with Nix, cabal2nix and haskellPackages in nixpkgs | Current Docs: https://haskell4nix.readthedocs.io/ | More Nix: #community:nixos.org | More Haskell: #haskell-space:matrix.org145 Servers

Load older messages


SenderMessageTime
9 May 2025
@maralorn:maralorn.demaralornWhat I meant to say, yes I copy flakes all the time, ... that's part of bootstraping a new project,22:02:52
@maralorn:maralorn.demaralornSo they all subtly diverge and work slightly different. 🫣22:03:24
10 May 2025
@sternenseemann:systemli.orgsterni (he/him) hm it would probably be easy to add a --no-ignore-conditionals flag to jailbreak-cabal, but the question is whether it's worth it as a stopgap until we have allow newer? 13:26:28
@maralorn:maralorn.demaralornallow-newer, reminds me at this point of projects like BER. 😂13:38:07
@jwwiegley:matrix.orgJohn Wiegleyhmm.. seems that latest haskellNix unstable update has broken haskell-language-server. Does anyone have an incantation to jailbreak or downgrade that package?16:31:28
@maralorn:maralorn.demaralorn
In reply to @jwwiegley:matrix.org
hmm.. seems that latest haskellNix unstable update has broken haskell-language-server. Does anyone have an incantation to jailbreak or downgrade that package?
That seems implausible. We take quite good care not to break hls with our updates.
16:51:16
@maralorn:maralorn.demaralornAre you on darwin?16:52:07
@alexfmpe:matrix.orgalexfmpe"haskellNix" ?16:52:09
@teoc:matrix.orgTeo (he/him)Perhaps this is related to 9.10.2? Which requires a patch to hls16:52:36
@alexfmpe:matrix.orgalexfmpethe LTS 23 bump we merged to master (which is probably on unstable now) does work with HLS 9.8 on darwin, I bumped to it couple days ago16:53:39
@alexfmpe:matrix.orgalexfmpe* the LTS 23 bump we merged to master (which is probably on unstable now) does work with HLS + 9.8 on darwin, I bumped to it couple days ago16:53:52
@maralorn:maralorn.demaralorn
In reply to @teoc:matrix.org
Perhaps this is related to 9.10.2? Which requires a patch to hls
I think it built on all versions we shipped when we merged.
16:53:53
@jwwiegley:matrix.orgJohn Wiegley Oh, your quality has been excellent, I've been upgrading these flakes for years now without any breakage at all. 16:54:06
@jwwiegley:matrix.orgJohn Wiegleyhere's the flake: https://github.com/jwiegley/renamer/blob/main/flake.nix16:54:20
@maralorn:maralorn.demaralornMaybe you can share an error message?16:54:39
@jwwiegley:matrix.orgJohn Wiegley

As of yesterday, nix flake update and nix develop breaks with:

       error: builder for '/nix/store/2xzv38sqwhw9vl1d33gsr97in4cjnr9s-haskell-language-server-plan-to-nix-pkgs.drv' failed with exit code 1;
       last 25 log lines:
       > Warning: The package list for 'hackage.haskell.org' is 20218 days old.
       > Run 'cabal update' to get the latest list of available packages.
       > Resolving dependencies...
       > Error: [Cabal-7107]
       > Could not resolve dependencies:
       > [__0] trying: haskell-language-server-2.10.0.0 (user goal)
       > [__1] trying: aeson-2.2.3.0 (dependency of haskell-language-server)
       > [__2] trying: haskell-language-server:+ormolu
       > [__3] next goal: ormolu (dependency of haskell-language-server +ormolu)
       > [__3] rejecting: ormolu-0.8.0.0 (conflict: haskell-language-server +ormolu => ormolu^>=0.1.2 || ^>=0.2 || ^>=0.3 || ^>=0.5 || ^>=0.6 || ^>=0.7)
       > [__3] trying: ormolu-0.7.7.0
       > [__4] next goal: ghc-lib-parser (dependency of ormolu)
       > [__4] rejecting: ghc-lib-parser-9.12.2.20250421 (conflict: ormolu => ghc-lib-parser>=9.10 && <9.11)
       > [__4] skipping: ghc-lib-parser; 9.12.2.20250320, 9.12.1.20250314, 9.12.1.20250105, 9.12.1.20250103, 9.12.1.20241218 (has the same characteristics that caused the previous version to fail: excluded by constraint '>=9.10 && <9.11' from 'ormolu')
       > [__4] trying: ghc-lib-parser-9.10.2.20250503
       > [__5] trying: hie-bios-0.15.0 (dependency of haskell-language-server)
       > [__6] next goal: ghcide (dependency of haskell-language-server)
       > [__6] rejecting: ghcide-2.10.0.0 (conflict: hie-bios==0.15.0, ghcide => hie-bios^>=0.14.0)
       > [__6] skipping: ghcide; 2.9.0.1, 2.9.0.0, 2.8.0.0, 2.7.0.0, 2.6.0.0, 2.5.0.0, 2.4.0.0, 2.3.0.0, 2.2.0.0, 2.1.0.0, 2.0.0.1, 2.0.0.0, 1.10.0.0, 1.9.1.0, 1.9.0.0, 1.8.0.0, 1.7.0.0, 1.6.0.1, 1.6.0.0, 1.5.0.1, 1.5.0, 1.4.2.3, 1.4.2.2, 1.4.2.0, 1.4.1.0, 1.4.0.3, 1.4.0.2, 1.4.0.1, 1.3.0.0, 1.2.0.2, 1.2.0.1, 1.2.0.0, 1.1.0.0, 1.0.0.0, 0.7.5.0 (has the same characteristics that caused the previous version to fail: excludes 'hie-bios' version 0.15.0)
       > [__6] rejecting: ghcide-0.7.4.0 (conflict: haskell-language-server => ghcide==2.10.0.0)
       > [__6] skipping: ghcide; 0.7.3.0, 0.7.2.0, 0.7.1.0, 0.7.0.0, 0.6.0.2, 0.6.0.1, 0.6.0, 0.5.0, 0.4.0, 0.3.0, 0.2.0, 0.1.0, 0.0.6, 0.0.5, 0.0.4, 0.0.3, 0.0.2, 0.0.1, 1.4.2.1 (has the same characteristics that caused the previous version to fail: excluded by constraint '==2.10.0.0' from 'haskell-language-server')
       > [__6] fail (backjumping, conflict set: ghcide, haskell-language-server, hie-bios)
       > After searching the rest of the dependency tree exhaustively, these were the goals I've had most trouble fulfilling: base, ghc-lib-parser, hie-bios, aeson, ghcide, haskell-language-server, ormolu, haskell-language-server:ormolu, hiedb, hls-ormolu-plugin
       > Try running with --minimize-conflict-set to improve the error message.
16:55:05
@maralorn:maralorn.demaralornOh16:55:24
@alexfmpe:matrix.orgalexfmpe"haskell-language-server-plan-to-nix-pkgs.drv" huh 16:55:30
@maralorn:maralorn.demaralornThat's haskell.nix I think16:55:38
@jwwiegley:matrix.orgJohn Wiegleyyes, haskell.nix. Am I in the wrong channel again? :)16:55:50
@alexfmpe:matrix.orgalexfmpeerror complains about ormulu, maybe disable that for now?16:56:19
@maralorn:maralorn.demaralornYes, or at least I have no clue about it. 😂16:56:22
@jwwiegley:matrix.orgJohn WiegleyI'm actually not using ormolu in this flake16:56:30
@jwwiegley:matrix.orgJohn Wiegleymaybe there's a way to configure HLS not to pull it in...16:56:43
@alexfmpe:matrix.orgalexfmpetrying: haskell-language-server:+ormolu16:56:51
@alexfmpe:matrix.orgalexfmpe * trying: haskell-language-server:+ormolu 16:57:00
@alexfmpe:matrix.orgalexfmpemust be a way to toggle the flag16:57:16
@alexfmpe:matrix.orgalexfmpedunno if haskell.nix inherits the nixpkgs' utils for cabal overrides16:57:45
@jwwiegley:matrix.orgJohn WiegleyI have to run now, but happy to dig into this later in the evening16:58:25
@alexfmpe:matrix.orgalexfmpemaybe we should rename to "nixpkgs haskell" or so?16:58:33

Show newer messages


Back to Room ListRoom Version: 6