!RbXGJhHMsnQcNIDFWN:nixos.org

Haskell in Nixpkgs/NixOS

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

Load older messages


SenderMessageTime
5 May 2025
@maralorn:maralorn.demaralorndefault ghc 9.8 has reached master and is heading for nixos-unstable. 🎉08:08:28
@maralorn:maralorn.demaralornArgh, my server seems to be replaying the event history in this room …09:39:42
@googleson78:tryp.io@googleson78:tryp.io left the room.15:00:30
@vcunat:matrix.orgvcunatI canceled https://hydra.nixos.org/jobset/nixpkgs/haskell-updates for now, until we catch up with the staging-next merge. Hydra has 400k long queue now. While most of that's cached, it takes time. And building the haskell jobset could slow it significantly, I think. (it really was building already)15:03:22
6 May 2025
@caina:caina.io彩娜 🏳️‍⚧️ joined the room.03:06:34
@vcunat:matrix.orgvcunatIt's much better now. Restarted the jobs.05:11:45
@alist:matrix.orgyliceee joined the room.07:46:49
@alist:matrix.orgyliceeedoes anyone have an example of a nix flake which uses haskell-flake and installs bash completions with the package? 07:47:14
@maralorn:maralorn.demaralorn

λlice: Do you mean generating completion for optparse applicative parameters? There is a helper for that in nixpkgs, but I don’t know how to integrate it with haskell-flake.

There might be other venues, where there is more discussion about haskell-flake, the readme is e.g. linking a zulip, since the maintainer of haskell-flake is banned from nixos community rooms.

07:54:59
@alist:matrix.orgyliceeeyeah i mean im not particularly eager to interact with the dev07:55:37
@alist:matrix.orgyliceeebut yes that's exactly my usecase. could u link the helper?07:56:14
@maralorn:maralorn.demaralornhttps://nixos.org/manual/nixpkgs/unstable/#haskell-package-set-lib-functions07:58:15
@maralorn:maralorn.demaralornThe ominously named file "haskell-modules/configuration-nix.nix" somewhere in nixpkgs contains plenty usage examples.07:59:19
@alist:matrix.orgyliceeetysm !07:59:57
@oak:universumi.fioak 🏳️‍🌈♥️ Could I get invite to #users:nixos.org channel please? 08:40:53
@alist:matrix.orgyliceeeoh, is that why i can't join the new version? it's invite-only now?09:12:17
@magic_rb:matrix.redalder.orgmagic_rbYes due to spam09:14:34
@maralorn:maralorn.demaralornIs there a documented way to get an invite?^^09:41:24
@maralorn:maralorn.demaralornI’d also be interested. 😄09:41:34
@toonn:matrix.orgtoonn Pinging K900 in off-topic is what I've seen. 09:45:16
@shapr:cofree.coffeeshapr I asked in #matrix-discussion:nixos.org 14:11:29
@pwmosquito:matrix.orgpwmosquitoHey 👋 please delete if it's not allowed but we recently put up a job ad for an SRE at our company: https://artificiallabsltd.teamtailor.com/jobs/5882832-site-reliability-engineer-sre which is basically a Nix+Haskell job (with some more usual suspects like Terraform, Docker, Buildkite, AWS)17:12:38
@m1-s:matrix.orgm1-s

Hello, does anyone have experience with building haskell on macOS? This project compiles fine on linux where nix uses gcc by default. it fails on darwin however as the default compiler there is clang.

> /nix/store/q7lf35kha4z40zkmhf3cyipaf7kkk6if-cctools-binutils-darwin-wrapper-1010.6/bin/ld: line 268:  5770 Segmentation fault: 11  /nix/store/qib1l5hjzaycqyw9slc2j127wma1ayix-cctools-binutils-darwin-1010.6/bin/ld "@$responseFile"
       > clang-16: error: linker command failed with exit code 139 (use -v to see invocation)
       > ghc-9.6.6: `cc' failed in phase `Linker'. (Exit code: 1)

The system has a linux builder vm with nix-darwin enabled but I dont think its related to this error.

20:33:41
@alexfmpe:matrix.orgalexfmpehttps://github.com/NixOS/nixpkgs/issues/14969221:01:23
@alexfmpe:matrix.orgalexfmpeMaybe this? How old is your nixpkgs?21:01:58
@alexfmpe:matrix.orgalexfmpeI haven't ran into this in almost a year21:02:23
@alex:tunstall.xyzAlex
In reply to @m1-s:matrix.org

Hello, does anyone have experience with building haskell on macOS? This project compiles fine on linux where nix uses gcc by default. it fails on darwin however as the default compiler there is clang.

> /nix/store/q7lf35kha4z40zkmhf3cyipaf7kkk6if-cctools-binutils-darwin-wrapper-1010.6/bin/ld: line 268:  5770 Segmentation fault: 11  /nix/store/qib1l5hjzaycqyw9slc2j127wma1ayix-cctools-binutils-darwin-1010.6/bin/ld "@$responseFile"
       > clang-16: error: linker command failed with exit code 139 (use -v to see invocation)
       > ghc-9.6.6: `cc' failed in phase `Linker'. (Exit code: 1)

The system has a linux builder vm with nix-darwin enabled but I dont think its related to this error.

You need to use a newer Nixpkgs, because this was fixed a few months ago.
I can't recall what the exact commit with the fix was, but one of the maintainers here likely knows.
21:30:22
@alexfmpe:matrix.orgalexfmpe
In reply to @alexfmpe:matrix.org
https://github.com/NixOS/nixpkgs/issues/149692
Fixed by https://github.com/NixOS/nixpkgs/pull/307880
22:24:53
@alexfmpe:matrix.orgalexfmpeI'd just bump to recent master and get 9.8.3 as default. It took like 5s off my reloads on mac22:26:27
@alexfmpe:matrix.orgalexfmpeThis here: https://gitlab.haskell.org/ghc/ghc/-/issues/2341522:27:07

Show newer messages


Back to Room ListRoom Version: 6