!RbXGJhHMsnQcNIDFWN:nixos.org

Haskell in Nixpkgs/NixOS

703 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 infrastructure139 Servers

Load older messages


SenderMessageTime
28 Mar 2026
@alex:tunstall.xyzAlex

we autogenerate expressions

And as a result many of the broken ones are a doJailbreak away from building.
(Random idea: would automatically trying jailbreak = true on the failing packages as part of the Stackage bump workflow be worth doing?)

19:16:06
@alexfmpe:matrix.orgalexfmpeIf you just want to make them build, then yeah that's not too different than what my sweep script does (actually in the other direction to see if jailbreak/etc are no longer needed)20:47:38
@alexfmpe:matrix.orgalexfmpe
In reply to @maralorn:maralorn.de
catsarecute: Unless the override is very nix specific we normally don’t accept patches which don’t have open PR upstream. So basically most of what would be done from our side is already been taken care of.
But if we then merge as is it goes against this criteria
20:48:05
@alexfmpe:matrix.orgalexfmpeBut maybe it could be somewhat more automated than is20:48:53
@maralorn:maralorn.demaralornThis would in practice help a lot. Although error messages for build errors would get worse. And some people hate nixpkgs and will never touch it because we have doJailbreak. I remember hearing one story where someone lost data in production because we ignored a bound which didn’t prevent a compile error but a runtime error …21:51:47
@sternenseemann:systemli.orgsterniof course 9.12.4 released when I was busy. I've updated the RC PR now: https://github.com/NixOS/nixpkgs/pull/50010821:53:05
29 Mar 2026
@alex:tunstall.xyzAlexYeah, preventable runtime errors are the risk of automated jailbreaking. It might be best not to so that any jailbreaking people do must be a deliberate and conscious decision.01:53:39
@shmwot:matrix.orgcatsarecute
In reply to @maralorn:maralorn.de
That being said there are certainly a lot of things that could be improved in our setup. I am just not sure if we can manage to bring in GSoC form.

Ah I see, that makes sense. I didn’t realize how much of the set was autogenerated from Hackage.

Out of curiosity then, what parts of the current Haskell packaging setup in nixpkgs do you feel are the roughest right now? I’d be interested in contributing around there.

04:09:16
@shmwot:matrix.orgcatsarecuteThanks everyone for the context and explanations, this was really helpful. I appreciate it a lot.04:11:25
@sternenseemann:systemli.orgsternialexfmpe (or anyone else): do you have a minute to look this over?10:21:41
@alexfmpe:matrix.orgalexfmpeLesseee10:22:45
@alexfmpe:matrix.orgalexfmpeLGTM, need some testing of builds?10:27:34
@sternenseemann:systemli.orgsternii tested HEAD and 9.12.4, currently building cabal2nix and haskell-language-server and gonna merge after i think10:28:07
@sternenseemann:systemli.orgsternion x86_64-linux10:28:10
@sternenseemann:systemli.orgsternifound a GHC 9.12.4 panic -.-12:03:20
@sternenseemann:systemli.orgsterni* found a GHC 9.12.4 panic -.- https://gitlab.haskell.org/ghc/ghc/-/issues/2712112:40:58
@alexfmpe:matrix.orgalexfmpeSigh12:45:44
@alexfmpe:matrix.orgalexfmpehttps://gitlab.haskell.org/ghc/ghc/-/issues/27061#note_66691212:49:06
@alexfmpe:matrix.orgalexfmpeThis really needs to hapoen12:49:31
@alexfmpe:matrix.orgalexfmpeWe even have a bunch of cross platforms with one-line level of support 12:50:17
@alexfmpe:matrix.orgalexfmpeHow do we dump all that on ghc hq as a regression test suite or whatever12:50:50
@b:chreekat.netchreekatThis is the kind of thing that needs a gsoc project12:54:30
@alexfmpe:matrix.orgalexfmpeHehehe12:58:19
@alexfmpe:matrix.orgalexfmpeSomewhat related, I wonder if the ghc.nix shell could be massively reduced by being based in the shell for our hadrian derivation or something. 13:02:15
@alexfmpe:matrix.orgalexfmpeNot sure if relevant here but when opening issues on ghc I tend to add a nixpkgs hash and the invocation just in case they can't reproduce it out of the box13:06:10
@ashinnv:matrix.orgM̸̙̜̔̇Ǎ̴͎̙͔G̸̞̈N̸͔͍̝͗͋̾Ő̷͖̼͈̽̚L̷̻͚̓̔I̷̛͔̰̟̔Å̴̩̍ ̷̦̒̇͝M̷̱̠̺̉̎A̵̼̎͗͘Ỹ̸̬̲͂̕H̷̙̖͂Ē̷͉̦̌͒M̶͈̥̽̐ (you don't get my real name) changed their display name from M̸̙̜̔̇Ǎ̴͎̙͔G̸̞̈N̸͔͍̝͗͋̾Ő̷͖̼͈̽̚L̷̻͚̓̔I̷̛͔̰̟̔Å̴̩̍ ̷̦̒̇͝M̷̱̠̺̉̎A̵̼̎͗͘Ỹ̸̬̲͂̕H̷̙̖͂Ē̷͉̦̌͒M̶͈̥̽̐ to M̸̙̜̔̇Ǎ̴͎̙͔G̸̞̈N̸͔͍̝͗͋̾Ő̷͖̼͈̽̚L̷̻͚̓̔I̷̛͔̰̟̔Å̴̩̍ ̷̦̒̇͝M̷̱̠̺̉̎A̵̼̎͗͘Ỹ̸̬̲͂̕H̷̙̖͂Ē̷͉̦̌͒M̶͈̥̽̐ (you don't get my real name).13:22:43
@sternenseemann:systemli.orgsterni alexfmpe: well I did test it ahead of time, but I only tried a couple of packages that were affected by the subword division issue and cabal2nix iirc 18:19:53
30 Mar 2026
@zumuzumu:matrix.orgBig man joined the room.04:41:17
@mangoiv.:matrix.orgMangoIV It can be. It just grew organically over many years. 08:48:09
@janus.troelsen:matrix.orgJanus I am wondering whether the plan is for nixpkgs to patch packages using memory to use ram instead? That would be interesting to see, as it could provide a relatively painless experience compared to all the builds currently failing (when mixing these) using the cabal solver... 08:49:21

There are no newer messages yet.


Back to Room ListRoom Version: 6