Haskell in Nixpkgs/NixOS | 719 Members | |
| For discussions and questions about Haskell with Nix, cabal2nix and haskellPackages in nixpkgs | Current Docs: https://haskell4nix.readthedocs.io/ | 144 Servers |
| Sender | Message | Time |
|---|---|---|
| 23 May 2025 | ||
| they wrap stack so it doesn't use Nix without having to specify disabling the integration in the stack yaml | 20:16:10 | |
| Oh that looks useful, thank you | 20:16:11 | |
| 24 May 2025 | ||
| 12:23:19 | ||
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 | ||
| I'll just open a PR :) | 10:38:50 | |
| Is https://github.com/NixOS/nixpkgs/blob/4a2c6cc55d3f21dfe98ed50b171dcc3fadbec294/pkgs/development/haskell-modules/HACKING.md outdated somehow because regenerate-hackage-packages.shgenerates formatting disagreeing with nix-shell --run treefmt? | 12:17:27 | |
| How so? That shouldn’t be the case. | 12:21:42 | |
| We just added the formatting to regenerate-hackage-packages.sh a few weeks ago? (around the time when formatting became mandatory.) | 12:22:32 | |
| Looks like when I ran
Maybe that way it failed before the formatting run? | 12:43:03 | |
| Another small question: https://github.com/NixOS/nixpkgs/pull/410785 | 12:46:12 | |
| Yeah, that’s fine against master. | 12:58:06 | |
| Huh, yeah, that is kinda troubling. | 12:59:16 | |
| You are right, I think the script failed before formatting. Question is ofc, why. | 12:59:52 | |
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 | |
| nh2: https://github.com/NixOS/nixpkgs/issues/400784 | 13:55:35 | |
| ah interesting, I tried with Nix 2.28.3 | 13:58:12 | |
| 27 May 2025 | ||
| 09:00:39 | ||
| 28 May 2025 | ||
| 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 | |
| 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 | |
| armv7 support in Nixpkgs is pretty bad at this point I think | 15:19:56 | |
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 | |
In reply to @sternenseemann:systemli.orgYou could try asking in #exotic:nixos.org. | 15:48:51 | |
In reply to @maralorn:maralorn.deI 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 | |
| https://downloads.haskell.org/ghc/latest/docs/users_guide/phases.html#ghc-flag-optc-option | 16:44:15 | |
In reply to @maralorn:maralorn.deI don't believe it can be done with env vars | 17:38:26 | |
| I think it's only the flags that @b:chreekat.net: mentioned | 17:39:45 | |
In reply to @maralorn:maralorn.de Aren't you assuming that GHC calls It doesn't unless you're compiling C code or you have an unregisterised GHC. Nixpkgs' | 17:41:18 | |
| I think I figured it out. | 17:58:41 | |
| And yes ghc calls cc. For c code and for linking. | 17:58:41 | |
| Well I guess -optlc might actually do what I want also. | 18:19:06 | |