!RbXGJhHMsnQcNIDFWN:nixos.org

Haskell in Nixpkgs/NixOS

722 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
3 Apr 2025
@alexfmpe:matrix.orgalexfmpe * That PR has been merged, so you want haskell-updates branch really. Can't say I've tried HLS 2.10 yet and there were also a couple reports of seg faults over at #haskell-language-server:matrix.org so there might even be a new release soon 12:47:38
@alexfmpe:matrix.orgalexfmpealso, haskell-updates has 9.8 as default ghc, but 9.12.2 is there and the default ghc91212:49:04
@alexfmpe:matrix.orgalexfmpeI'm not sure exactly how/when the caching jobs work, but I expect as long as 9.12 isn't the default, you'll have cached compiler but not cached packages12:50:11
@alex:tunstall.xyzAlex
In reply to @alexfmpe:matrix.org
I'm not sure exactly how/when the caching jobs work, but I expect as long as 9.12 isn't the default, you'll have cached compiler but not cached packages
Cache is populated from haskell-updates (and IIRC only from that branch).
12:51:25
@maralorn:maralorn.demaralornWell and from master of course. Although the list of jobs which get build on which branch is slightly different.13:03:15
@maralorn:maralorn.demaralornSome central packages, e.g. hls are being cached for every (major) compiler version.13:03:46
@alexfmpe:matrix.orgalexfmpenoice14:00:41
@alexfmpe:matrix.orgalexfmpeyeah this is what confuses me, which does which14:00:55
@alexfmpe:matrix.orgalexfmpeI haven't gotten even 9.8 from cache on my mac on haskell-updates14:01:13
@alexfmpe:matrix.orgalexfmpe* I haven't gotten even 9.8 from cache on my m1 mac on haskell-updates14:01:39
@alexfmpe:matrix.orgalexfmpe* I haven't gotten even ghc 9.8 from cache on my m1 mac on haskell-updates14:02:11
@maralorn:maralorn.demaralornWell builds also need to succeed of course.14:21:22
@maralorn:maralorn.demaralornwell compare pkgs/top-level/release.nix (ctrl+f haskell) with pkgs/top-level/release-haskell.nix14:26:42
@profpatsch:augsburg.oneProfpatsch Is there a shortcut for building an executable with pre-set GHC RTS params?14:26:49
@profpatsch:augsburg.oneProfpatschIn particular -Iw60 for small scripts to reduce the idle gc frequency14:27:04
@maralorn:maralorn.demaralornYes, you can pass RTS flags to set by default to ghc.14:27:27
@maralorn:maralorn.demaralorn e.g.: -with-rtsopts=-maxN2 14:28:01
@maralorn:maralorn.demaralorn * e.g.: ghc-options: -threaded -with-rtsopts=-maxN2 14:28:28
@profpatsch:augsburg.oneProfpatschAh you mean in the cabal file?14:28:43
@profpatsch:augsburg.oneProfpatschI guess that works14:28:46
@maralorn:maralorn.demaralornAccording to that we mainly build every ghc major release+hls on master and plenty more on haskell-updates.14:30:16
@alexfmpe:matrix.orgalexfmpeHuh so the darwin build is probably failing is that it?14:42:16
@maralorn:maralorn.demaralornOh, no.14:45:15
@maralorn:maralorn.demaralornI think because of reasons which I would largely summarize under "Apple" we currently don’t build for any darwin target on haskell-updates. 😄14:45:53
@maralorn:maralorn.demaralornThat was however a temporary mitigation for that fact that stuff was very fragged. I don’t know what would need to happen for us to re-enable them.14:47:05
@alex:tunstall.xyzAlex
In reply to @profpatsch:augsburg.one
Ah you mean in the cabal file?
The alternative, if you don't want to touch the Cabal file, is that you edit the cabal2nix output or override the package.
I think --ghc-options can be added to configureFlags?
14:49:31
@profpatsch:augsburg.oneProfpatschcabal file is fine15:03:05
@Las:matrix.orgLas
In reply to @cdepillabout:matrix.org
Maybe what you're thinking of is packageOverrides: https://haskell4nix.readthedocs.io/frequently-asked-questions.html#how-to-override-packages-in-all-compiler-specific-package-sets
So I would set it in my overlay, right?
15:40:53
@Las:matrix.orgLasthis is just what I wanted15:41:01
@alexfmpe:matrix.orgalexfmpe
In reply to @maralorn:maralorn.de
I think because of reasons which I would largely summarize under "Apple" we currently don’t build for any darwin target on haskell-updates. 😄
Ah yeah that was my assumption
16:56:00

Show newer messages


Back to Room ListRoom Version: 6