!RbXGJhHMsnQcNIDFWN:nixos.org

Haskell in Nixpkgs/NixOS

741 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.org148 Servers

Load older messages


SenderMessageTime
23 Apr 2026
@eldritchcookie:matrix.orgeldritchcookiewait this is intended to be compiled only via nix?22:39:02
@m1-s:matrix.orgm1-sNot sure if this is the right place but I am looking for feedback for this cabal2nix PR: https://github.com/NixOS/cabal2nix/pull/71722:39:58
24 Apr 2026
@alexfmpe:matrix.orgalexfmpeit is the right place, though I think maintainer(s) of cabal2nix are currently swamped 10:23:52
@alexfmpe:matrix.orgalexfmpe m1-s: I don't understand what you're going for though 10:24:13
@alexfmpe:matrix.orgalexfmpeyou can build packages with multiple libraries just fine, here's an example with a ton of them: https://hackage-content.haskell.org/package/raaz-0.3.11/src/raaz.cabal10:25:57
@alexfmpe:matrix.orgalexfmpewhat you can't currently do, is differentiate between multiple components of the same type10:26:16
@alexfmpe:matrix.orgalexfmpeseems to me your PR differentiates between main-lib and other-libs, not between all libs10:26:42
@alexfmpe:matrix.orgalexfmpesomewhat related, ICYMI https://github.com/NixOS/cabal2nix/pull/709 https://github.com/NixOS/cabal2nix/pull/71610:27:09
@alexfmpe:matrix.orgalexfmpewell haskell.nix does allow this, but nixpkgs doesn't yet10:28:19
@alexfmpe:matrix.orgalexfmpe oh I misread, I see your subLibraryDepends is actually a map 10:29:18
@alexfmpe:matrix.orgalexfmpethen I'm confused in a different way, why only do this for libraries?10:32:10
@m1-s:matrix.orgm1-smhm maybe I misunderstood the current capabilities. I will do some more research. Thanks for your feedback!11:23:04
@alexfmpe:matrix.orgalexfmpeI mean, the only thing special about library components is that you can have a main library. So I'd expect what you're doing to be applicable to executables/benchmarks/tests12:32:12
@alexfmpe:matrix.orgalexfmpeI think most of the work is on the nixpkgs side though. We have hundreds of overrides and I'd bet over 100 of them directly rely on current structure, and the rest use dozens of utils that also do12:34:29
@alexfmpe:matrix.orgalexfmpeSo we'll need to make those utils recover current behavior with new structure, then add a migration path for component-granularity override12:35:24
@alexfmpe:matrix.orgalexfmpe* So we'll need to make those utils recover current behavior with new structure, then add a migration path for component-granularity overrides12:35:31
@alexfmpe:matrix.orgalexfmpeMaybe the way to go is actually first doing this end to end just for internal libraries which are less common, then gradually rollout to benchmarks, executables, test suites12:36:46
@aiya:catgirl.cloudaiyahow long does it usually take for a new version from hackage to make it into haskell-updates? assume the package isn't on stackage18:59:20
20 May 2021
@grahamc:nixos.org@grahamc:nixos.org set the history visibility to "world_readable".22:10:58
@grahamc:nixos.org@grahamc:nixos.org changed the room name to "" from "".22:10:58
@grahamc:nixos.org@grahamc:nixos.org invited @maralorn:maralorn.demaralorn.22:11:05
@maralorn:maralorn.demaralorn joined the room.22:11:13
@andi:kack.itandi- joined the room.22:30:49
@grahamc:nixos.org@grahamc:nixos.orgchanged room power levels.22:36:42
Room Avatar Renderer.22:46:20
@maralorn:maralorn.demaralorn changed the join rule to "public" from "public".22:54:26
@maralorn:maralorn.demaralorn changed the room topic to "For discussions and questions about Haskell with Nix, cabal2nix and haskellPackages in nixpkgs | Current Docs: https://haskell4nix.readthedocs.io/" from "For discussions about Haskell with Nix, cabal2nix and haskellPackages in nixpkgs | Current Docs: https://haskell4nix.readthedocs.io/".22:56:19
@server_stats:nordgedanken.devServer Stats Discoverer (traveler bot) joined the room.23:05:49
@pennae:matrix.eno.spacepennae joined the room.23:06:26
@justinrestivo:matrix.orgjustinrestivo joined the room.23:07:39

Show newer messages


Back to Room ListRoom Version: 6