!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

You have reached the beginning of time (for this room).


SenderMessageTime
14 May 2025
@sternenseemann:systemli.orgsterni (he/him)Anything 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 (he/him) 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
15 May 2025
@profpatsch:augsburg.oneProfpatschkeypusher: yeah I’d assume with the nixpkgs haskell system you need a separate cabal17:17:13
@profpatsch:augsburg.oneProfpatschdunno about haskell.nix17:17:22
@alexfmpe:matrix.orgalexfmpeI'm confused on what the issue is18:00:54
@alexfmpe:matrix.orgalexfmpeThere's plenty of multi component packages on nixpkgs18:01:13
@alexfmpe:matrix.orgalexfmpewell, I guess one ergonomic issue I'm aware of is a single callCabal2nix derivation will build all components with different flags or for different platforms18:05:10
@alexfmpe:matrix.orgalexfmpe* well, I guess one ergonomic issue I'm aware of is a single callCabal2nix derivation will build all components with the same flags for the same platform, etc18:05:25
@alexfmpe:matrix.orgalexfmpeso if you wanted different flags for each you'd need to build all the components with each configuration 18:05:55
@maralorn:maralorn.demaralornI assume the support is not great. Because our generated derivation does not expose separate components. So e.g. the library dependencies are a union over all dependencies.18:06:07
@alexfmpe:matrix.orgalexfmpeyeah granularity could be improved18:06:35
@alexfmpe:matrix.orgalexfmpebut "didn't work well" sounds like there's something broken somewhere?18:07:23

Show newer messages


Back to Room ListRoom Version: 6