Haskell in Nixpkgs/NixOS | 723 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.org | 145 Servers |
| Sender | Message | Time |
|---|---|---|
| 26 Jul 2025 | ||
| agh! | 01:58:12 | |
ok never mind I totally got my package sets mixed up. buildPackages is pkgsBuildHost :) | 01:58:22 | |
pkgsBuildBuild is used to build things for the build platform, pkgsBuildHost for the host platform | 01:58:39 | |
("target platform" is only relevant from the perspective of a compiler. you should usually be talking about "build platform" and "host platform". from the perspective of pkgsFooBar.someCompiler, the consumer's Foo platform is the compiler's buildPlatform and hostPlatform, and the consumer's Bar platform is the compiler's targetPlatform. e.g. if you use pkgsBuildHost โ buildPackages โ in a package, and select a compiler from it, that compiler will have compiler's buildPlatform = your buildPlatform, compiler's hostPlatform = your buildPlatform, compiler's targetPlatform = your hostPlatform) | 02:00:15 | |
| wellโฆ hopefully all that made things more confusing | 02:00:28 | |
| anyway, it may be that the Haskell package set gets cross/splicing wrong in ways that make things weird. I've seen some hints of that in the past. not sure though | 02:00:50 | |
| so where does a cross compiler fit into that? (How do you specify Target?) | 04:34:15 | |
And then when I have a fix, do I create a PR to marge into haskell-updates? | 04:49:29 | |
In reply to @aidalgol:matrix.orgYes | 07:27:06 | |
| Leaving out the confusing mess that is splicing, cross starts by setting So with WASM, | 07:40:16 | |
In reply to @maralorn:maralorn.de
The | 08:00:57 | |
| 08:27:13 | ||
| Interesting article on cross compilation in nixpkgs if you haven't seen it https://blog.obsidian.systems/compiler-bootstrapping-in-nixpkgs/ | 08:54:04 | |
In reply to @b:chreekat.netNot cross compiling ghc though ๐ | 14:04:30 | |
| ...yet | 14:15:37 | |
| maralorn: fyi https://github.com/NixOS/nixpkgs/pull/424162/commits/3ddc9cb90a53f999a1b0c3b4b7a6215973fa6df0 | 20:23:57 | |
| we should cross compile some bindists before it stops being possible :p | 20:25:18 | |
| True, maybe time to try asking around again. | 21:34:49 | |
| 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 | |
| Full 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 | ||
In reply to @sternenseemann:systemli.orgBtw 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 | |
In reply to @teoc:matrix.orgDo 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 | |
In reply to @alex:tunstall.xyzMaybe this https://gitlab.haskell.org/ghc/ghc/-/merge_requests/11444 ? | 16:08:09 | |
In reply to @alex:tunstall.xyz* Maybe this https://gitlab.haskell.org/ghc/ghc/-/merge_requests/11444 ? | 16:10:12 | |
In reply to @alex:tunstall.xyz* 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 | |
| 17:05:13 | ||
| 17:15:15 | ||
| 17:24:22 | ||
In reply to @teoc:matrix.orgThat sounds like precisely it, yes. Maybe if I get the time I'll try applying the MR in Nixpkgs... | 17:34:35 | |
| 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 way | 18:04:53 | |