!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
15 Sep 2025
@alex:tunstall.xyzAlex
In reply to @sternenseemann:systemli.org
I would just start with adding a MicroHs package set built with GHC as we don't have hugs and then just iterate on that; maybe add hugs separately, have a hugs package set (if that even makes sense).

we don't have hugs

All it needs is an older GCC than the Nixpkgs default (or for someone to patch it to work with newer GCC).

13:48:08
@sternenseemann:systemli.orgsterni (he/him)as long as it's not older than what we have in nixpkgs we can just package that shouldn't be a problem13:48:38
@sternenseemann:systemli.orgsterni (he/him)I guess still it may be easier to get MicroHs with GHC to work first before figuring out hugs, but you know that better.13:49:01
@emilazy:matrix.orgemilyhow old13:49:12
@emilazy:matrix.orgemilywe will be dropping GCC 14 in 26.0513:49:21
@emilazy:matrix.orgemily er 13:49:34
@emilazy:matrix.orgemily1313:49:36
@emilazy:matrix.orgemily so I strongly recommend patching or -Wno-error over pinning an old GCC 13:49:45
@emilazy:matrix.orgemily(it needs Lennart's branch of Hugs right? presumably we could just send PRs and treat that as the upstream)13:50:11
@alex:tunstall.xyzAlex Right now I'm using gcc13Stdenv, so I may need to take a closer look at the error from newer GCCs... 13:50:16
@alex:tunstall.xyzAlex
In reply to @emilazy:matrix.org
(it needs Lennart's branch of Hugs right? presumably we could just send PRs and treat that as the upstream)
Sounds good to me.
13:50:46
@emilazy:matrix.orgemilyyeah I would prefer a moratorium on adding more GCC 13 at this point :P13:50:47
@emilazy:matrix.orgemilyit's not hard to adapt stuff to newer versions13:50:54
@emilazy:matrix.orgemilyjust slightly tedious sometimes13:50:59
@alex:tunstall.xyzAlex
In reply to @emilazy:matrix.org
it's not hard to adapt stuff to newer versions

This one's non-trivial... Actually something wrong with Hugs' version of base IIRC (maybe a slightly less old base could be patched in?)

ERROR "libraries/bootlib/Foreign/C/Types.hs":173 - Undefined type constructor "NotReallyAType"

13:54:22
@Ericson2314:matrix.orgJohn EricsonOo Haven caught up in all of this, but I like where things are going 13:54:21
@Ericson2314:matrix.orgJohn Ericson*haven't 13:54:25
@emilazy:matrix.orgemilythis is at runtime?13:55:12
@emilazy:matrix.orgemilysmells like latent UB in Hugs that's getting exposed13:55:23
@alex:tunstall.xyzAlexNope, build time.13:55:29
@emilazy:matrix.orgemilybut that's not C13:55:39
@emilazy:matrix.orgemilyI mean it's Hugs outputting that right13:55:50
@emilazy:matrix.orgemilyso it's Hugs runtime13:55:55
@alex:tunstall.xyzAlex The NotReallyAType comes from base's autoconf script somehow not finding the corresponding Haskell type for a few C types. 13:56:31
@emilazy:matrix.orgemilyI see13:58:14
@emilazy:matrix.orgemilyprobably there are new warnings/errors in GCC confusing it13:58:32
@emilazy:matrix.orgemilythat happens a lot in autoconf13:58:41
@emilazy:matrix.orgemilycheck config.log13:58:43
@emilazy:matrix.orgemilyyou'll probably see some ancient looking C program that needs adapting13:58:56
@emilazy:matrix.orgemily you should of course autoreconfHook and get it on latest autotools 13:59:10

Show newer messages


Back to Room ListRoom Version: 6