!RbXGJhHMsnQcNIDFWN:nixos.org

Haskell in Nixpkgs/NixOS

724 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

Load older messages


SenderMessageTime
22 Apr 2025
@alexfmpe:matrix.orgalexfmpeso now it's just about keeping it building12:14:32
@alexfmpe:matrix.orgalexfmpe(reflex-platform still has a bunch of stuff for mobile)12:15:25
@emilazy:matrix.orgemilyif Stackage LTS QA is actually as minimal as claimed here then it seems like tracking nightly would be an easy way to avoid painful flag days / long-lived branches with less risk than I expected12:16:47
@teoc:matrix.orgTeo (he/him)I think more sharing between nixpkgs and head.hackage would be great. head.hackage used to use the nixpkgs infra to build stuff so it's not inconceivable that it could do that again. At some point I want to write a little cli for head.hackage to help track upstream PRs etc, since it's a huge pain atm, and often PRs are just not made to the upstream. Nixpkgs is much better in this regard12:18:06
@alexfmpe:matrix.orgalexfmpeapparently I'm wrong, stackage site claims they do run test suites12:18:21
@alexfmpe:matrix.orgalexfmpethey just don't patch things,12:18:40
@alexfmpe:matrix.orgalexfmpe* they just don't patch things12:18:44
@alexfmpe:matrix.orgalexfmpe

head.hackage used to use the nixpkgs infra to build stuff
oh? why did they stop?

12:19:41
@alexfmpe:matrix.orgalexfmpe *

head.hackage used to use the nixpkgs infra to build stuff

oh? why did they stop?

12:19:46
@teoc:matrix.orgTeo (he/him)See this commit message: https://gitlab.haskell.org/ghc/head.hackage/-/commit/1b616c6c48dc11dfe1e357d4250ad6882cd3224a12:21:21
@alexfmpe:matrix.orgalexfmpeswitching to nightly needs one eager flag day but personally I'm up for that pain if we belive it makes the long term better12:21:33
@alexfmpe:matrix.orgalexfmpe* switching to nightly needs one eager flag day but personally I'm up for that pain if we believe it makes the long term better12:21:43
@emilazy:matrix.orgemilyit just seems like there's a cadence issue (from previous talk in the room) and IMO any situation where you're ending up with months-long branches off Nixpkgs is pain12:23:05
@alexfmpe:matrix.orgalexfmpe

Nix's Haskell infrastructure doesn't handle flags, which can complicate building some packages

it doesn't ?

12:23:12
@emilazy:matrix.orgemily"if it hurts, do it more often" etc.12:23:24
@teoc:matrix.orgTeo (he/him) Perhaps the issue here was that you wanted the solver to pick some flags and nixpkgs doesn't have a solver? Not sure exactly what he's alluding to tho 12:24:27
@mightybyte:matrix.orgmightybyte joined the room.12:27:35
@ihar.hrachyshka:matrix.org@ihar.hrachyshka:matrix.org joined the room.12:33:31
@alexfmpe:matrix.orgalexfmpe* But it's not an orthogonal layer we can just be agnostic to. If they have some package deep in the dependency chains that is broke but only the tests expose it, stackage will happily base other package versions around it and then we need to undo a part of that EDIT: me wrong. Stackage does run (native) test suites, they just don't patch stuff12:37:03
@alexfmpe:matrix.orgalexfmpe* It's insane to me they don't run test suites EDIT: me wrong. Stackage does run (native) test suites, they just don't patch stuff12:37:51
@teoc:matrix.orgTeo (he/him)Redacted or Malformed Event12:44:39
@alexfmpe:matrix.orgalexfmpe
In reply to @alexfmpe:matrix.org
apparently I'm wrong, stackage site claims they do run test suites
Think I see where I got confused. They do run test suites and also install c libraries and stuff on the docker image for libs that do need that
What they don't seem to do is spin up separate processes or other crazy stuff we get up to when running the test suites
12:48:51
@alexfmpe:matrix.orgalexfmpee.g. postgres libs test suites are disabled12:49:05
@alexfmpe:matrix.orgalexfmpehttps://github.com/commercialhaskell/stackage/blob/master/build-constraints.yaml#L869412:49:08
@alexfmpe:matrix.orgalexfmpeOh heh TIL they also have our silly test-suite-induced-cycle issues12:50:33
@emilazy:matrix.orgemily FWIW, AIUI we used to track Stackage nightly but then stopped. it came up a while ago. I think maralorn had things to say about it. 12:55:17
@maralorn:maralorn.demaralornI am in favor of tracking nightly. We simply didn’t have the energy to frontload the flag day.12:59:57
@emilazy:matrix.orgemilyis the flag day b/c jumping from current LTS to current nightly will effectively be the work of an LTS bump?13:01:09
@alexfmpe:matrix.orgalexfmpeI assume that becomes closer to the truth the closer nightly is to become new LTS?13:06:06
@alexfmpe:matrix.orgalexfmpeOr is nightly just very much broken in the early days?13:08:44

Show newer messages


Back to Room ListRoom Version: 6