!RbXGJhHMsnQcNIDFWN:nixos.org

Haskell in Nixpkgs/NixOS

678 Members
For discussions and questions about Haskell with Nix, cabal2nix and haskellPackages in nixpkgs | Current Docs: https://nixos.org/manual/nixpkgs/unstable/#haskell | Current PR: https://github.com/nixos/nixpkgs/pulls?q=is%3Apr+is%3Aopen+head%3Ahaskell-updates | Maintainer Docs: https://github.com/NixOS/nixpkgs/blob/haskell-updates/pkgs/development/haskell-modules/HACKING.md | More Nix: #community:nixos.org | More Haskell: #haskell-space:matrix.org | Merger Schedule: https://cloud.maralorn.de/apps/calendar/p/H6migHmKX7xHoTFa/dayGridMonth/now | Join #haskell.nix:libera.chat for question about the alternative haskell.nix infrastructure134 Servers

Load older messages


SenderMessageTime
23 Oct 2025
@alexfmpe:matrix.orgalexfmpefunnily enough eval of this is broken on master and on present haskell-updates, looks like something got merged very recently 17:28:51
@alexfmpe:matrix.orgalexfmpe
$ nix-build -A pkgsCross.ghcjs.haskell.packages.ghc912.hello      
error: no C compiler provided for this platform
17:30:22
@alexfmpe:matrix.orgalexfmpeyay17:30:26
@alexfmpe:matrix.orgalexfmpebisect was pretty quick: this broke eval: https://github.com/NixOS/nixpkgs/pull/36659317:39:01
@alexfmpe:matrix.orgalexfmpe somehow we're getting a
ghcjs -> emscripten -> openjdk -> python -> openssl
that ends up trying to eval stdenv.cc.isGnu that then throws because there's no c compiler
17:51:32
@magic_rb:matrix.redalder.orgmagic_rb
In reply to @alexfmpe:matrix.org
js backend is recent enough I wouldn't bother much with anything older than 9.12
mhm i actully figured it out, but i had to apply https://gitlab.haskell.org/ghc/ghc/-/merge_requests/14882 but using sed
17:54:57
@magic_rb:matrix.redalder.orgmagic_rb had to add both HEAP8 and HEAPU8 17:55:12
@alexfmpe:matrix.orgalexfmpeah ok, keep in mind I 'backported' that last week17:58:28
@alexfmpe:matrix.orgalexfmpehttps://github.com/NixOS/nixpkgs/pull/45152717:58:28
@magic_rb:matrix.redalder.orgmagic_rbah, good to know18:47:06
@magic_rb:matrix.redalder.orgmagic_rbi need to bump nixpkgs anyway due to a broken aeson i think18:47:32
@alexfmpe:matrix.orgalexfmpemight want to bump to the commit above, at least until the eval error is sorted out19:20:10
@alexfmpe:matrix.orgalexfmpe^19:20:15
@magic_rb:matrix.redalder.orgmagic_rb
In reply to @alexfmpe:matrix.org
might want to bump to the commit above, at least until the eval error is sorted out
compiling for me, still not working, but neither jsaddle nor js is working so i think im doing something very very wrong
19:29:39
@alexfmpe:matrix.orgalexfmpewhat does 'not working' mean19:30:01
@magic_rb:matrix.redalder.orgmagic_rbclipboard.png
Download clipboard.png
19:30:33
@magic_rb:matrix.redalder.orgmagic_rbsame error on both js and jsaddle19:30:40
@magic_rb:matrix.redalder.orgmagic_rb🤔19:30:45
@magic_rb:matrix.redalder.orgmagic_rbthis is miso so maybe miso is broken, ill try a different commit ig19:31:01
@alexfmpe:matrix.orgalexfmpecan you expand the error on the browser console?19:39:57
@magic_rb:matrix.redalder.orgmagic_rbrolling back miso "fixed it" i may revisit this at some point but rn i actually want to write some code 🥲21:35:30
@magic_rb:matrix.redalder.orgmagic_rbive been trying to get this working for the last 2 months21:35:37
24 Oct 2025
@andreabedini:matrix.organdreabedini changed their display name from andreabedini to Andrea.01:23:08
@andreabedini:matrix.organdreabedini changed their display name from Andrea to andreabedini.04:50:22
25 Oct 2025
@nrbray:matrix.orgNigel joined the room.09:30:09
26 Oct 2025
@ners:nixos.devners

I'm trying to build a project that has build-depends on both haskell-language-server and hls-plugin-api.
Getting the following error when trying to build it with Nix:

Error: [Cabal-7107]
Could not resolve dependencies:
[__0] trying: dosh-24.11 (user goal)
[__1] trying: lsp-client-0.4.0.0/installed-9paX9qIvVp6G32qMeolaRR (dependency of dosh)
[__2] next goal: hls-plugin-api (dependency of dosh)
[__2] rejecting: hls-plugin-api-2.11.0.0/installed-4lbla6iVQTHCJxg4ni6oA8 (conflict: lsp-client => lsp==2.7.0.1/installed-5hx47Y1LdOnAB7d5AgUCZ9, hls-plugin-api => lsp==2.7.0.1/installed-G2N8IrC9NSyIKEvHjZgyEW)
[__2] trying: hls-plugin-api-2.11.0.0/installed-IPU6Rknqm9R6YyD99rrbxT
[__3] next goal: haskell-language-server (dependency of dosh)
[__3] rejecting: haskell-language-server-2.11.0.0/installed-AGaYptnU925K1vcaCIwSpk (conflict: hls-plugin-api==2.11.0.0/installed-IPU6Rknqm9R6YyD99rrbxT, haskell-language-server => hls-plugin-api==2.11.0.0/installed-4lbla6iVQTHCJxg4ni6oA8)
[__3] fail (backjumping, conflict set: dosh, haskell-language-server, hls-plugin-api)

If I pin to nixos-25.05 it works, so it must be a recent breakage.

12:50:29
@maralorn:maralorn.demaralornWell, "breakage".12:55:39
@maralorn:maralorn.demaralornThe problem is that we are fixing hls with an overrideScope in config…-common.nix and that overlay one is not being applied to the exposed hls-plugin-api package.12:57:07
@maralorn:maralorn.demaralornMore generally when somehow beating hls into compiling I generally don’t consider downstream consumers who link against it. I wasn’t aware of their existence.12:58:12
@ners:nixos.devnersIt's a thing that should work (the usage is valid) but does not. It even used to work, but has stopped working. That's by definition a breakage. :)13:08:45

Show newer messages


Back to Room ListRoom Version: 6