!RbXGJhHMsnQcNIDFWN:nixos.org

Haskell in Nixpkgs/NixOS

695 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 infrastructure138 Servers

Load older messages


SenderMessageTime
2 Feb 2026
@alexfmpe:matrix.orgalexfmpe* Technically I expect it should also apply to wasm since these are always 'emulated' targets13:29:51
@alexfmpe:matrix.orgalexfmpe* Technically I expect it should also apply to wasm (if/when we get it) since these are always 'emulated' targets13:30:32
@teoc:matrix.orgteo (they/he)Is iserv-proxy rather than just plain iserv needed for these? I would've assumed that iserv-proxy isn't very helpful in nix since you can't access the network13:40:52
@sternenseemann:systemli.orgsterniwe need to execute it independently from ghc anyways since it needs to run under emulation14:52:41
@teoc:matrix.orgteo (they/he)Sure but isn't that just iserv running under an emulator, does it need to go via a network?14:55:09
@sternenseemann:systemli.orgsterni no, but can 15:03:42
@teoc:matrix.orgteo (they/he)Ah fair enough then15:04:20
@hellwolf:matrix.orghellwolfhttps://github.com/NixOS/nixpkgs/pull/486303 & https://github.com/NixOS/nixpkgs/pull/486009 15:17:52
@sternenseemann:systemli.orgsterni teo (they/he): you’ll have to ask alexfmpe why exactly but I assume iserv proxy is something that is proven to work for this use case already 15:26:57
@alexfmpe:matrix.orgalexfmpewell, you can still access localhost (though in darwin you either need to disable sandbox or add a magical attribute to the derivation)15:37:30
@alexfmpe:matrix.orgalexfmpe it doesn't, and IIUC angerman has plans to make it not do that 15:38:21
@alexfmpe:matrix.orgalexfmpeultimately I just grabbed what haskell.nix uses and shoved it into nixpkgs15:38:45
@alexfmpe:matrix.orgalexfmpeconsider it more of a "upstreamed some of the stuff working over there" than "this is how it should be done"15:39:12
@alexfmpe:matrix.orgalexfmpein particular, I think GHC 10.0 is going to change things a bit with the on-demand external interpreter15:39:35
@teoc:matrix.orgteo (they/he)Sure that makes sense!15:39:37
@teoc:matrix.orgteo (they/he)Yeah that is quite nice! and is basically just automatically building iserv15:40:02
@alexfmpe:matrix.orgalexfmpethere's also a lot of miscelanous changes only present in a particular branch of iserv-proxy15:40:33
@alexfmpe:matrix.orgalexfmpehttps://github.com/stable-haskell/iserv-proxy/pull/115:40:36
@alexfmpe:matrix.orgalexfmpeas for iserv, I have no idea where it went after 9.615:40:43
@alexfmpe:matrix.orgalexfmpehttps://github.com/NixOS/nixpkgs/pull/445672#discussion_r243021457015:41:49
@teoc:matrix.orgteo (they/he) It lives here https://gitlab.haskell.org/ghc/ghc/-/tree/ghc-9.10/utils/iserv?ref_type=heads but doesn't exist on master since we now use the on demand stuff 15:44:33
@teoc:matrix.orgteo (they/he)iserv-proxy also used to be in the ghc tree but got moved out a while ago15:44:57
@teoc:matrix.orgteo (they/he)Basically before 10.0, the way to get iserv was to have it bundled with GHC15:58:45
@ashinnv:matrix.orgmag changed their display name from m to GOD EMPEROR MAYHEM - OVERSEER OF ENTROPY AND THE SECOND LAW.20:38:30
3 Feb 2026
@alex:tunstall.xyzAlex This seems to be caused by the unregisterised backend.
I haven't tried an unregisterised native build, but disabling unregisterised "fixed" the build, at the cost of producing segfaulting binaries.
I tried adding -std=gnu17 and even -std=gnu99 to EXTRA_CC_ARGS but I'm still getting errors related to the -std=gnu23 default, so I'm not sure what I'm missing here.
01:12:03
4 Feb 2026
@juhp:matrix.orgJens Petersen We have #haskell-distros:matrix.org now btw - just created today if anyone interested 02:56:49
@sternenseemann:systemli.orgsterni
In reply to @alex:tunstall.xyz
This seems to be caused by the unregisterised backend.
I haven't tried an unregisterised native build, but disabling unregisterised "fixed" the build, at the cost of producing segfaulting binaries.
I tried adding -std=gnu17 and even -std=gnu99 to EXTRA_CC_ARGS but I'm still getting errors related to the -std=gnu23 default, so I'm not sure what I'm missing here.
if all fails we can probably use NIX_CFLAGS_COMPILE
06:37:31
@sternenseemann:systemli.orgsterniI wonder if unregistered builds are affected by this even on later versions06:37:59
@ashinnv:matrix.orgmag changed their display name from GOD EMPEROR MAYHEM - OVERSEER OF ENTROPY AND THE SECOND LAW to mag.13:35:14
@alex:tunstall.xyzAlex I saw that it gets passed as -optc-std=gnu17. My hypothesis is that -optc options are ignored by the C backend and only used for C source files.
One potential problem with NIX_CFLAGS_COMPILE is that I suspect it would need to be propagated to all dependants.
There might be some other way of configuring C flags, such that they always get used.
I saw for example that --info includes a "CC args" entry, though I'm not sure how the build system sets that.
17:42:16

There are no newer messages yet.


Back to Room ListRoom Version: 6