!RbXGJhHMsnQcNIDFWN:nixos.org

Haskell in Nixpkgs/NixOS

697 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.org141 Servers

Load older messages


SenderMessageTime
9 Jul 2025
@maralorn:maralorn.demaralornOn which plattform is this?14:04:32
@maralorn:maralorn.demaralornGenerally the nixpkgs infrastructure is already profiling enabled no intervention required.14:05:09
@maralorn:maralorn.demaralornMaybe however you don’t want to use -prof and instead --enable-library-profiling. Not sure.14:05:54
@maralorn:maralorn.demaralorn Yeah, 2.10 had a lot of plugins disabled on 9.12 and had that documented wrongly in the support matrix in their user guide. 14:07:00
@sellout:matrix.orgsellout Yeah, building the derivation twice on the same machine works. The trouble (I think) is figuring out what to push to the cache so that when a fresh machine (e.g., CI runner) does nix build .#all, it can relatively quickly download the cached all closure. But (again, I think) it ends up building the world just to evaluate all.drv, when it should be able to pull all.drv from the cache as well … which, uh, I guess makes it clear that I should just need to push all.drv as well … which I’m pretty sure I have been. So now some more digging to see how I messed that up. 16:48:52
@sellout:matrix.orgsellout I know the Cachix incantation removes the .drvs before pushing, but I had added those back in. 16:49:42
@sellout:matrix.orgselloutThanks for the response – it at least gives me more to explore.16:51:15
11 Jul 2025
@jose:storopoli.comJose Storopoli joined the room.17:50:21
12 Jul 2025
@prsteele:matrix.orgPatrick SteeleLate response, but NixOS on WSL2.02:17:45
13 Jul 2025
@kephaspierre:matrix.orgPierre Thierry

I want HLS for GHC 9.6.6 to match what a Stack project is using, so I tried a shell.nix file with:
pkgs.mkShell {packages = [pkgs.haskell.packages.ghc966.ghcWithPackages (p: [p.haskell-language-server])];}

But the test suite of zlib fails on check compress large chunk: Test suite tests: FAIL

18:11:02
@kephaspierre:matrix.orgPierre ThierryI'm not sure how to debug/fix that…18:11:10
@kephaspierre:matrix.orgPierre Thierry(is there a better way to get the HLS for GHC 9.6.6?)18:30:36
@maralorn:maralorn.demaralorn @kephaspierre:matrix.org We need more context for that error message. Is it while building the nix shell failing the zlib derivation? There are different ways but at this point I don't see how they would fix the problem. 22:18:59
@alexfmpe:matrix.orgalexfmpeyay, gi-foo packages got fixed with LTS bump22:50:54
@alexfmpe:matrix.orgalexfmpeI was utterly on the dark about that22:51:20
14 Jul 2025
@kephaspierre:matrix.orgPierre Thierry
In reply to @maralorn:maralorn.de
@kephaspierre:matrix.org We need more context for that error message. Is it while building the nix shell failing the zlib derivation? There are different ways but at this point I don't see how they would fix the problem.
Yes, the nix-shell is built just fine with ghc963 but fails with ghc966.
00:09:44
@sternenseemann:systemli.orgsterni (he/him) alexfmpe: https://github.com/haskell-gi/haskell-gi/issues/472#issuecomment-3041892857 08:22:23
@sternenseemann:systemli.orgsterni (he/him)🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨 https://www.stackage.org/lts-2420:59:47
@alexfmpe:matrix.orgalexfmpeseems my packages work there which is good because I'm about to disappear into a black hole for 3 weeks 23:36:31
15 Jul 2025
@sternenseemann:systemli.orgsterni (he/him)I have a good feeling about this LTS version (clueless)09:20:07
@sternenseemann:systemli.orgsterni (he/him) maralorn: have you played around with nix-eval-jobs before? 09:21:30
@sternenseemann:systemli.orgsterni (he/him)Did we intentionally remove this job? https://hydra.nixos.org/eval/1816888#tabs-removed can't remember anything09:30:49
@maralorn:maralorn.demaralornYeah, the fact that it arrived so fast is probably a good sign.09:31:40
@maralorn:maralorn.demaralornNot really, I think. Why?09:32:10
@sternenseemann:systemli.orgsterni (he/him)we need to use it now because hydra-eval-jobs got killed09:32:36
@maralorn:maralorn.demaralornHuh, I see.09:32:51
@sternenseemann:systemli.orgsterni (he/him) it has a different streaming output I think which needs changes 09:35:29
@sternenseemann:systemli.orgsterni (he/him)I figured out the flags needed to get it to behave like hydra-eval-jobs mostly now09:35:43
@sternenseemann:systemli.orgsterni (he/him)but I haven't seen it finish on my machine yet and I don't quite know what's going on09:35:58
@sternenseemann:systemli.orgsterni (he/him)I think it has some built in resource limits09:36:05

Show newer messages


Back to Room ListRoom Version: 6