!RbXGJhHMsnQcNIDFWN:nixos.org

Haskell in Nixpkgs/NixOS

709 Members
For discussions and questions about Haskell with Nix, cabal2nix and haskellPackages in nixpkgs | Current Docs: https://haskell4nix.readthedocs.io/140 Servers

Load older messages


SenderMessageTime
31 Aug 2025
@dandart:matrix.orgUraraka ~ Ochacomaybe it's to make things nix-buildable? either way a full install with prefix will still build manually17:45:04
@lxsameer:matrix.orglxsameerPeri, i never tried any wasm related stuff on haskell. is it ok to use any prelude?17:45:13
@dandart:matrix.orgUraraka ~ OchacoI presume so, everything non-network-related seemed to work for me17:45:35
@dandart:matrix.orgUraraka ~ OchacoI wrote a reflex-dom app with it17:46:07
@dandart:matrix.orgUraraka ~ Ochacowth a load of servant in it17:46:22
@lxsameer:matrix.orglxsameercool cool. seems like i can handle my workload with it17:46:47
@maralorn:maralorn.demaralorn
In reply to @dandart:matrix.org
maybe it's to make things nix-buildable?
either way a full install with prefix will still build manually
Yes, it is to make things nix buildable.
17:46:50
@maralorn:maralorn.demaralornBut it's still very rough around the reges.17:48:16
@maralorn:maralorn.demaralorn * 17:48:26
@dandart:matrix.orgUraraka ~ OchacoI kind of gave up nix-building haskell projects because I wanted to keep up with hackage versions (and especially text 2.1.2) - I had to keep jailbreaking things but the package versions in nixpkgs unstable / haskell-updates were still very behind. I presume they were up to date with various stackage snapshots but I don't use stack as I end up missing updates. I ended up just doing it by getting only ghc and cabal through nix-shell, and then getting cabal to do everything cabal style. That way I can allow people who don't want to use nix be able to do things just as well with ghcup. hence haven't tried to nix-build any haskell bits in a good while.17:52:03
@maralorn:maralorn.demaralornYes, nixpkgs will lag behind, especially in the last year because we get to little help maintaining it. But very often not having the bleeding edge is fine for most usecases.18:22:12
@dandart:matrix.orgUraraka ~ Ochacothat's fair enough, I have contributed fixes to it before18:23:22
1 Sep 2025
@artem.types:matrix.orgArtemregarding https://github.com/NixOS/nixpkgs/pull/429810#issuecomment-3242423178 it's curious that the test suite hangs on "network client and server" (the last line) Something about network configuration on hydra machines?..13:46:14
@sternenseemann:systemli.orgsterni (he/him)either that or related to load on those machines, hard to tell13:47:34
@sternenseemann:systemli.orgsterni (he/him)I'll ask if they changed anything recently13:48:18
@sternenseemann:systemli.orgsterni (he/him)maybe someone should try with Nix, I've used Lix13:50:14
@sternenseemann:systemli.orgsterni (he/him)okay third time's the charm14:08:22
2 Sep 2025
@bglgwyng:matrix.orgbglgwyng

I've patched glib package and got this message during build

> Running phase: setupCompilerEnvironmentPhase
> Build with /nix/store/j7jc5k1l70axsk8s3zi9m4d0q23w3asp-ghc-9.10.1.
> Running phase: unpackPhase
> unpacking source archive /nix/store/13z7zgx0h4cyjm9ddf7i39d7xr3q72wy-glib-0.13.12.0.tar.gz
> source root is glib-0.13.12.0
> setting SOURCE_DATE_EPOCH to timestamp 1000000000 of file "glib-0.13.12.0/System/Glib/Utils.chs"
> Running phase: patchPhase
> Running phase: compileBuildDriverPhase
> setupCompileFlags: -package-db=/build/tmp.a1u8Em0pDC/setup-package.conf.d -threaded
> [1 of 2] Compiling Main             ( Setup.hs, /build/tmp.a1u8Em0pDC/Main.o )
> Setup.hs:5:1: error: [GHC-45102]
>     Ambiguous module name ‘Gtk2HsSetup’.
>     it was found in multiple packages:
>     gtk2hs-buildtools-0.13.12.0 gtk2hs-buildtools-0.13.12.0

I think it's somewhat related to Setup.hs executing during install, but I have no clue how to inspect this more. Does anyone know this issue?

11:03:49
@wolfgangwalther:matrix.orgWolfgang Walther joined the room.12:10:07
@sternenseemann:systemli.orgsterni (he/him) bglgwyng: what does patched mean here? 12:11:25
@sternenseemann:systemli.orgsterni (he/him) Wolfgang Walther: hi :) 12:11:38
@bglgwyng:matrix.orgbglgwyng I did glib = callCabal2Nix ./glib-x.y.z {...} thing. I'm using haskell-flake so the code is different but the result would be so. 12:14:43
@sternenseemann:systemli.orgsterni (he/him)i guess you should first rule out that you have multiple gtk2hs-buildtools derivations in the build environment12:24:38
@aidalgol:tchncs.de@aidalgol:tchncs.de joined the room.21:56:50
3 Sep 2025
@ghpzin:envs.netghpzin joined the room.09:31:07
@gefla:aber.netGerd Flaig joined the room.20:55:18
4 Sep 2025
@epimonic:matrix.orgepimonic joined the room.00:36:54
@aidalgol:tchncs.de@aidalgol:tchncs.de changed their display name from Aidan Gauland to aidalgol[m].11:23:25
@aidalgol:tchncs.de@aidalgol:tchncs.de changed their display name from aidalgol[m] to aidalgol.11:24:11
@maralorn:maralorn.demaralornAh, yeah, users and their wishes. https://github.com/NixOS/nixpkgs/issues/190542#issuecomment-3253170725 Funny thing is I remember vividly how hard not having the newest version of anything would have annoyed me ten years ago. 😄11:52:17

Show newer messages


Back to Room ListRoom Version: 6