!RbXGJhHMsnQcNIDFWN:nixos.org

Haskell in Nixpkgs/NixOS

717 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.org143 Servers

Load older messages


SenderMessageTime
23 May 2025
@maralorn:maralorn.demaralornI don’t think that’s impossible … But the nix-integration is not something which nixos or nixpkgs injects into stack. Instead that is just a feature built into stack.20:10:34
@thetaoofsu:matrix.orgTheTaoOfSuOh, no, I take it back, here's a warning about it, I think20:10:47
@thetaoofsu:matrix.orgTheTaoOfSuYeah, it's because I'm using stable channels instead of unstable20:11:23
@thetaoofsu:matrix.orgTheTaoOfSu They say to control it through stack.yaml, but one of the commands that's broken by it is stack new, so I'll have to write a starter myself 20:12:25
@maralorn:maralorn.demaralornPhew20:12:44
@winston:winston.shwinston did you see https://docs.haskellstack.org/en/stable/topics/nix_integration/#supporting-both-nix-and-non-nix-developers ? 20:15:38
@winston:winston.shwinstonI remember using that template when I used stack, found it useful back then20:15:54
@winston:winston.shwinstonthey wrap stack so it doesn't use Nix without having to specify disabling the integration in the stack yaml20:16:10
@thetaoofsu:matrix.orgTheTaoOfSuOh that looks useful, thank you20:16:11
24 May 2025
@qyliss:fairydust.spaceAlyssa Ross joined the room.12:23:19
@qyliss:fairydust.spaceAlyssa Ross Are any of the dontChecks in configuration-8.6.x.nix still necessary, given that AFAICT the only set that uses it is ghc865Binary, which never enables checks anyway? 12:24:17
25 May 2025
@qyliss:fairydust.spaceAlyssa RossI'll just open a PR :)10:38:50
@nh2:matrix.orgnh2 Is
https://github.com/NixOS/nixpkgs/blob/4a2c6cc55d3f21dfe98ed50b171dcc3fadbec294/pkgs/development/haskell-modules/HACKING.md
outdated somehow because
regenerate-hackage-packages.sh
generates formatting disagreeing with nix-shell --run treefmt?
12:17:27
@maralorn:maralorn.demaralornHow so? That shouldn’t be the case.12:21:42
@maralorn:maralorn.demaralornWe just added the formatting to regenerate-hackage-packages.sh a few weeks ago? (around the time when formatting became mandatory.)12:22:32
@nh2:matrix.orgnh2

Looks like when I ran ./maintainers/scripts/haskell/regenerate-hackage-packages.sh it failed half-way with:

Running hackage2nix to regenerate pkgs/development/haskell-modules/hackage-packages.nix …
Regenerating transitive-broken.yaml … (pass --fast to ./maintainers/scripts/haskell/regenerate-hackage-packages.sh to skip this step)
error: access to absolute path '/nix' is forbidden in restricted mode

Maybe that way it failed before the formatting run?
Not sure what the cause of that error is exactly

12:43:03
@nh2:matrix.orgnh2

Another small question:
Am I doing this PR right / should it be against master?

https://github.com/NixOS/nixpkgs/pull/410785

12:46:12
@maralorn:maralorn.demaralornYeah, that’s fine against master.12:58:06
@maralorn:maralorn.demaralornHuh, yeah, that is kinda troubling.12:59:16
@maralorn:maralorn.demaralornYou are right, I think the script failed before formatting. Question is ofc, why.12:59:52
@winston:winston.shwinston hmm I just ran that script on c8d36fe and didn't get that error, but all I got were two maintainers changes, idk if that still means it succeeded 13:16:05
@sternenseemann:systemli.orgsterni (he/him) nh2: https://github.com/NixOS/nixpkgs/issues/400784 13:55:35
@winston:winston.shwinstonah interesting, I tried with Nix 2.28.313:58:12
27 May 2025
@irenes:matrix.org@irenes:matrix.org left the room.09:00:39
28 May 2025
@sternenseemann:systemli.orgsterni (he/him)Currently looks like GHC removal project will at least kill armv7l-linux and powerpc64le-linux for GHC (the latter was very unreliable anyways, so probably not a big loss). Unless, of course, we can cross compiled GHC as bootstrap seed to work.15:18:20
@sternenseemann:systemli.orgsterni (he/him)I think armv7l is de facto dead as well, but nixpkgs CI checks eval of it?? Probably more GHC availability checks need to be added before we can drop support.15:19:24
@emilazy:matrix.orgemilyarmv7 support in Nixpkgs is pretty bad at this point I think15:19:56
@maralorn:maralorn.demaralorn sterni: When I want GHC to set a flag when calling cc during a compilation. Is there an environment variable I can set in my Haskell package derivation? Or is it correct that I can only set that variable during compilation of GHC via CONF_CC_OPTS_STAGE2. It seems kinda fishy to me because I basically only want to affect runtime behavior of the compiler. 15:43:27
@alex:tunstall.xyzAlex
In reply to @sternenseemann:systemli.org
I think armv7l is de facto dead as well, but nixpkgs CI checks eval of it?? Probably more GHC availability checks need to be added before we can drop support.
You could try asking in #exotic:nixos.org.
15:48:51
@b:chreekat.netchreekat
In reply to @maralorn:maralorn.de
sterni: When I want GHC to set a flag when calling cc during a compilation. Is there an environment variable I can set in my Haskell package derivation? Or is it correct that I can only set that variable during compilation of GHC via CONF_CC_OPTS_STAGE2. It seems kinda fishy to me because I basically only want to affect runtime behavior of the compiler.
I see a -optc and a -optlc (for llvm... Not sure why there's two) on GHC directly , but maybe you're asking about a different level of the stack
16:44:04

Show newer messages


Back to Room ListRoom Version: 6