Haskell in Nixpkgs/NixOS | 714 Members | |
| For discussions and questions about Haskell with Nix, cabal2nix and haskellPackages in nixpkgs | Current Docs: https://haskell4nix.readthedocs.io/ | 144 Servers |
| Sender | Message | Time |
|---|---|---|
| 7 Feb 2026 | ||
| 19:51:52 | |
| maybe you happened to build something recently merged so hydra hadn't catched up yet | 19:52:28 | |
| 🤷♀️ | 19:53:49 | |
It's inconsistent because haskell-updates gets all non-broken packages for its default GHC cached, but sometimes master (and thus nixpkgs-unstable) deviates slightly from it. | 20:15:47 | |
ah fair, I was checking in haskell-updates | 20:17:53 | |
| seems pretty much the same in current master:
| 20:18:59 | |
| 8 Feb 2026 | ||
| we've removed 9.12.1, so must be an old revision | 11:52:55 | |
| If I try to override Cabal and Cabal-syntax in a package set, why do I end up with multiple versions of Cabal? In particular I get this serious warning:
Is it because those packages are not overridable (boot packages or such)? Or could it be configure-time dependencies? | 12:28:56 | |
| Am I right in assuming that usually if you override a package in a package set (examples from the file I'm modifying: https://github.com/commercialhaskell/stackage-server/blob/master/package.nix), the override you specify becomes the only version of that package available, regardless of where it lives in the dependency tree of other packages in the set? | 12:31:10 | |
| This is true, but the core packages bundled on GHC still depend on other core packages. So if you want to globally override Cabal, you also need to globally override all core packages that (indirectly) depend on Cabal, so they get rebuilt. | 12:32:18 | |
| Then you also need to convince the cabal solver to pick those packages over the core packages which can sometimes be tricky (but usually just works). | 12:32:44 | |
| in this case the latter seems to be happening, i.e. hackage-security is still built against the core package | 12:33:37 | |
| Ok, so my memory/intuition was fairly correct. How can I do a "null" override for hackage-security and any other packages, so they get rebuilt? certainly not just hackage-security = old.hackage-security, ... | 12:36:19 | |
| should be rebuild as it has a Cabal input. Check what version it is and what constraints it has on Cabal. Maybe it just doesn't allow 3.12. | 12:39:34 | |
| cool, things seem to be progressing by setting jailbreak = true for the package. Oh, what terrors may await | 12:43:33 | |
| (I thought about just bumping the nixpkgs pin to pick up a newer version of Cabal, but since this particular project is upstream of the snapshots that are upstream of nixpkgs packages I thought it would be good to ensure I can independently upgrade Cabal to pick up packages that use newer versions) | 12:44:39 | |
| damn, that changed the hash and rebuilt some stuff, but it did not get any further | 12:45:35 | |
you can try passing --constraint=Cabal>=3.12 as a configure flag | 12:46:33 | |
| ooh, neat, searching for a flag like that found some good examples of massaging dependencies on Cabal | 12:48:47 | |
| This did a thing, but it created an impossible condition by adding
| 12:58:37 | |
| ah right the constraints are behind a conditional, so jailbreak won't relax them. | 13:00:23 | |
| you need to either patch that or more likely upgrade to a version of hackage-security that does support Cabal 3.12 since I doubt it will build even if you patch the cabal file | 13:00:58 | |
| ok, i'll fall back to just bumping the nixpkgs pin for now | 13:01:26 | |
| thanks for the help! | 13:03:26 | |
| wonder when one of those cabal install plan to nix generator projects finally pans out. Should be very possible to make one. I think those would be pretty useful, or alternatively ig revive something like stackage2nix | 13:07:27 | |
| maybe people just need to stop trying to make it happen with ifd first… | 13:07:38 | |
| for real | 13:50:38 | |
| Can it be done without IFD? Or are you talking about the cabal2nix approach, generating it ahead of time? | 13:57:31 | |
| What's that new thing that's some sort of recursive nix? Ah, this: https://github.com/NixOS/rfcs/blob/master/rfcs/0092-plan-dynamism.md | 14:03:01 | |
| Without IFD or a functional equivalent, I guess. | 14:08:13 | |