!RbXGJhHMsnQcNIDFWN:nixos.org

Haskell in Nixpkgs/NixOS

720 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
26 Jul 2025
@oak:universumi.fioak 🏳️‍🌈♥️ changed their profile picture.08:27:13
@b:chreekat.netchreekatInteresting article on cross compilation in nixpkgs if you haven't seen it https://blog.obsidian.systems/compiler-bootstrapping-in-nixpkgs/08:54:04
@aleksana:mozilla.orgaleksana 🏳️‍⚧️ (force me to bed after 18:00 UTC)
In reply to @b:chreekat.net
Interesting article on cross compilation in nixpkgs if you haven't seen it https://blog.obsidian.systems/compiler-bootstrapping-in-nixpkgs/
Not cross compiling ghc though 😔
14:04:30
@b:chreekat.netchreekat...yet14:15:37
@sternenseemann:systemli.orgsterni (he/him) maralorn: fyi https://github.com/NixOS/nixpkgs/pull/424162/commits/3ddc9cb90a53f999a1b0c3b4b7a6215973fa6df0 20:23:57
@sternenseemann:systemli.orgsterni (he/him)we should cross compile some bindists before it stops being possible :p20:25:18
@alex:tunstall.xyzAlexTrue, maybe time to try asking around again.21:34:49
@aidalgol:matrix.orgaidalgol sterni: I figure we should probably take the oama cabal discussion here. Should I just leave it pinned to the old GHC version, or try overriding it with a newer Cabal version, or something else? 21:55:01
@aidalgol:matrix.orgaidalgolFull disclosure, I am not familiar with Haskell tooling, and only maintain oama in nixpkgs because I have a strong need for a working OAUTH credential manager that can use the Secrets Service interface.21:56:19
27 Jul 2025
@teoc:matrix.orgTeo (he/him)
In reply to @sternenseemann:systemli.org
we should cross compile some bindists before it stops being possible :p
Btw if there's issues the nixpkgs maintainers would like emphasized more, I'm happy to raise things at the GHC meetings. No guarantees that stuff will get prioritised but it might help avoid stuff falling through the cracks
12:41:23
@alex:tunstall.xyzAlex
In reply to @teoc:matrix.org
Btw if there's issues the nixpkgs maintainers would like emphasized more, I'm happy to raise things at the GHC meetings. No guarantees that stuff will get prioritised but it might help avoid stuff falling through the cracks
Do you know if anyone is looking into making cross work with Hadrian?
It would probably be far more effort than adding our own bindists to tarballs.nixos.org and is of limited benefit to x86 and aarch64, so I could understand if nobody wants to do it.
15:54:29
@teoc:matrix.orgTeo (he/him)
In reply to @alex:tunstall.xyz
Do you know if anyone is looking into making cross work with Hadrian?
It would probably be far more effort than adding our own bindists to tarballs.nixos.org and is of limited benefit to x86 and aarch64, so I could understand if nobody wants to do it.
Maybe this https://gitlab.haskell.org/ghc/ghc/-/merge_requests/11444 ?
16:08:09
@teoc:matrix.orgTeo (he/him)
In reply to @alex:tunstall.xyz
Do you know if anyone is looking into making cross work with Hadrian?
It would probably be far more effort than adding our own bindists to tarballs.nixos.org and is of limited benefit to x86 and aarch64, so I could understand if nobody wants to do it.
* Maybe this https://gitlab.haskell.org/ghc/ghc/-/merge_requests/11444 ?
16:10:12
@teoc:matrix.orgTeo (he/him)
In reply to @alex:tunstall.xyz
Do you know if anyone is looking into making cross work with Hadrian?
It would probably be far more effort than adding our own bindists to tarballs.nixos.org and is of limited benefit to x86 and aarch64, so I could understand if nobody wants to do it.
*

Maybe this https://gitlab.haskell.org/ghc/ghc/-/merge_requests/11444 ?

Is there a specific set of issues you have in mind?

16:13:07
@pkmean:matrix.org@pkmean:matrix.org joined the room.17:05:13
@pkmean:matrix.org@pkmean:matrix.org left the room.17:15:15
@foxmean:unredacted.orgfoxmean joined the room.17:24:22
@alex:tunstall.xyzAlex
In reply to @teoc:matrix.org

Maybe this https://gitlab.haskell.org/ghc/ghc/-/merge_requests/11444 ?

Is there a specific set of issues you have in mind?

That sounds like precisely it, yes.
Maybe if I get the time I'll try applying the MR in Nixpkgs...
17:34:35
@teoc:matrix.orgTeo (he/him)There's also been a lot of work recently on making more boot libs easy to reinstall and on ghc-toolchain. Both of those should make everything cross related easier to implement in a nice way18:04:53
28 Jul 2025
@kephaspierre:matrix.orgPierre Thierry

I'm trying to fix broken packages, starting with polysemy-zoo, I have the latest master from the nixpkgs repo, and the only files modified are broken.yaml and main.yaml in configuration-hackage2nix, but when I do:

./maintainers/scripts/haskell/regenerate-hackage-packages.sh

I get the following error:

hackage2nix: user error (Unexpected end-of-input, expecting JSON value)

Am I missing a step or doing something wrong?

13:53:54
@b:chreekat.netchreekatSo you modified json and now you're getting a "user error: invalid json"? :D14:17:34
@maralorn:maralorn.demaralornYeah, sounds like you made a syntax error in the yaml files.14:49:19
@kephaspierre:matrix.orgPierre ThierryWell, I didn't think my changes could be the source but I checked anyway: I get the error with a clean working directory.16:30:42
@maralorn:maralorn.demaralornI just checked out recent nixos-unstable and it seems to work.17:58:30
@maralorn:maralorn.demaralorn* I just checked out recent nixos-unstable and it seems to work for me.17:58:44
29 Jul 2025
@sternenseemann:systemli.orgsterni (he/him) maralorn: do you have time to give https://github.com/NixOS/nixpkgs/pull/429212 a look over or should I just merge it and start an evaluation 11:46:13
@sternenseemann:systemli.orgsterni (he/him) * maralorn: do you have time to give https://github.com/NixOS/nixpkgs/pull/429212 a look over or should I just merge it and start an evaluation? 11:46:16
@sternenseemann:systemli.orgsterni (he/him)or others with relevant experience of course :p11:57:57
@maralorn:maralorn.demaralornI can take a look later.12:29:00
@sternenseemann:systemli.orgsterni (he/him) Pierre Thierry: Feel free to open an issue about it, including enough information to hopefully reproduce the issue you're seeing. 17:12:26

Show newer messages


Back to Room ListRoom Version: 6