!RbXGJhHMsnQcNIDFWN:nixos.org

Haskell in Nixpkgs/NixOS

681 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
12 May 2025
@maralorn:maralorn.demaralornThat all is independent and separate of the execution of the build described in the derivation.21:16:08
@nrs-status:matrix.orgthirdofmay18081814goyahm I see, right makes sense21:19:56
@nrs-status:matrix.orgthirdofmay18081814goyathanks for the comments!21:19:59
@vaibhavsagar:matrix.orgvaibhavsagar I have a GHC 9.10 executable that compiles just fine but gives me an internal error: ARR_WORDS object (0x4203ec35d8) entered! when I run it 22:20:19
@vaibhavsagar:matrix.orgvaibhavsagarIt was working with a previous version of Nixpkgs so I'm wondering how to figure out what went wrong22:20:44
@alexfmpe:matrix.orgalexfmpeThat sounds cursed22:52:05
@terrorjack:matrix.orgterrorjacki'd say it's worth reporting in ghc issue tracker if you have a repro with bad/good nixpkgs rev23:00:48
@vaibhavsagar:matrix.orgvaibhavsagarcool, I do have a (large) repro so I'll try that23:54:36
13 May 2025
@vaibhavsagar:matrix.orgvaibhavsagarthanks, I opened https://gitlab.haskell.org/ghc/ghc/-/issues/2603300:04:56
@b:chreekat.netchreekat does cabal --enable-executable-static work on NixOS? I just get a ton of endefined references to everything from the linker 13:32:14
@b:chreekat.netchreekat * does cabal --enable-executable-static work on NixOS? I just get a ton of undefined references to everything from the linker 13:32:20
@winston:winston.shwinston this might help, depending on your dependencies it can be quite involved 17:11:42
@maralorn:maralorn.demaralorn Does anyone know whether overriding ghc works via ghc = … super.ghcin a haskellPackages overlay? 17:44:24
@b:chreekat.netchreekat winston: i think doing it in a nix build is actually somewhat more explored than what I am trying to do, which is just use cabal in a nix shell 18:40:05
@alex:tunstall.xyzAlex
In reply to @maralorn:maralorn.de
Does anyone know whether overriding ghc works via ghc = … super.ghcin a haskellPackages overlay?
My understanding of how the whole thing is wired suggests that it ought to work.
19:40:06
14 May 2025
@sternenseemann:systemli.orgsterniprobably is broken in some way14:26:11
@sternenseemann:systemli.orgsterniAnything blocking https://github.com/NixOS/nixpkgs/pull/404362? I think it can be merged.14:27:05
@nrs-status:matrix.orgthirdofmay18081814goya it's not normal for template-haskell not to appear in the global package db for ghc66 right? 15:12:06
@nrs-status:matrix.orgthirdofmay18081814goya by global package db I mean the path given by ghc --info 15:12:17
@nrs-status:matrix.orgthirdofmay18081814goya or equivalently (i just learned) ghc-pkg list 15:19:05
@nrs-status:matrix.orgthirdofmay18081814goya seems to be an issue with haskell.nix's shell function 15:53:31
@sternenseemann:systemli.orgsterni unfortunately, this is the wrong place to ask about haskell.nix. You would expect template-haskell-2.20.0.0. 16:08:21
@nrs-status:matrix.orgthirdofmay18081814goyaright, turns out it is a haskell.nix specific problem, no issue with the standard infra16:18:50
@nrs-status:matrix.orgthirdofmay18081814goya(ty for answer)17:20:27
@nrs-status:matrix.orgthirdofmay18081814goya* (ty for answer, forgot lol)17:20:46
@nrs-status:matrix.orgthirdofmay18081814goya* (ty for answer)17:21:26
@keypusher:matrix.orgkeypusher joined the room.17:44:11
@keypusher:matrix.orgkeypusherWhat is a good approach building a multi library project with nix? It seems cabal 3's "multiple libraries per cabal file" doesn't play well with nix. Which leads me to believe it's a better bet to keep separate cabal file per library?18:25:02
@keypusher:matrix.orgkeypusher"seems" here is from memory and also google search on the subject that led me to a thread that seems to confirm it didn't work well by end of 2024. 18:28:44
@alexfmpe:matrix.orgalexfmpe"doesn't play well with nix" ?19:18:45

Show newer messages


Back to Room ListRoom Version: 6