!RbXGJhHMsnQcNIDFWN:nixos.org

Haskell in Nixpkgs/NixOS

679 Members
For discussions and questions about Haskell with Nix, cabal2nix and haskellPackages in nixpkgs | Current Docs: https://nixos.org/manual/nixpkgs/unstable/#haskell | Current PR: https://github.com/nixos/nixpkgs/pulls?q=is%3Apr+is%3Aopen+head%3Ahaskell-updates | Maintainer Docs: https://github.com/NixOS/nixpkgs/blob/haskell-updates/pkgs/development/haskell-modules/HACKING.md | More Nix: #community:nixos.org | More Haskell: #haskell-space:matrix.org | Merger Schedule: https://cloud.maralorn.de/apps/calendar/p/H6migHmKX7xHoTFa/dayGridMonth/now | Join #haskell.nix:libera.chat for question about the alternative haskell.nix infrastructure134 Servers

Load older messages


SenderMessageTime
28 Sep 2025
@lavalier:matrix.orglibman joined the room.05:35:06
@sternenseemann:systemli.orgsterni bglgwyng: as far as I know, there is no way to specify the build targets at configure time 10:28:22
@sternenseemann:systemli.orgsterniThe package database is prepared by us and includes all dependencies Cabal reports to us when generating the expression. Not sure if you could influence this to trim down to specific targets, in any case cabal2nix does not support this at the moment.10:29:38
@sternenseemann:systemli.orgsterniinteresting that doesn't seem to be documented?10:31:01
@sternenseemann:systemli.orgsterni it would be nice if we could set testTargets and buildTargets at configure time already 10:31:28
@bglgwyng:matrix.orgbglgwyngIndeed I tried the same thing but it didn't work11:46:44
@bglgwyng:matrix.orgbglgwyngMaybe haskell.nix uses its own patched version?11:47:06
@bglgwyng:matrix.orgbglgwyngNo, it doesn't.13:20:35
@sternenseemann:systemli.orgsternimaybe it is possible with cabal-install, but not Setup.hs? though the cabal(1) man page doesn't seem to indicate this…16:33:29
29 Sep 2025
@tomodachi94:matrix.org@tomodachi94:matrix.org left the room.03:15:05
@bglgwyng:matrix.orgbglgwyngI still can't reproduce haskell.nix's behavior, which I didn't check if it work though. But I'm failing with both cabal-instsall and Setup.hs.03:28:08
@ivy:faggot.shivy joined the room.04:22:03
@ivy:faggot.shivyi wanna see if i can fix kmonad on macos04:23:39
@ivy:faggot.shivyim unsure how i can "unbreak" like i deleted the line from main.yaml04:23:58
@ivy:faggot.shivybut how do i regenerate package-list04:24:11
@ivy:faggot.shivycause it builds for me on my mac04:49:30
@ivy:faggot.shivyso idk why considered "broken"04:49:35
@ivy:faggot.shivyif its the drivers i have a pr for that04:49:45
@bglgwyng:matrix.orgbglgwyngI hardwired CABAL_CONFIG and CABAL_DIR as Nix store paths in nix-x-cabal. And it broke hls since it tries to build on start up emitting intermidiate outputs in CABAL_DIR. Is it basically a bad idea to do so, even though I can figure out how to work around this specific issue?06:11:52
@bglgwyng:matrix.orgbglgwyng * I hardwired CABAL_CONFIG and CABAL_DIR as Nix store paths in nix-x-cabal. And it broke HLS since it tries to build on start up emitting intermidiate outputs in CABAL_DIR. Is it basically a bad idea to do so, even though I can figure out how to work around this specific issue? 06:24:51
@sternenseemann:systemli.orgsterni ivy: I've looked into it and it seems like it was broken at one point and the Nixpkgs maintainer had no access to a Darwin machine to investigate the failure. Probably has been resolved by Apple SDK changes or whatever. I've proposed the correct meta data update at https://github.com/NixOS/nixpkgs/pull/447134. 10:35:13
@sternenseemann:systemli.orgsterni It is currently not (easily) possible to regenerate hackage-packages.nix on Darwin since the tool that does it uses a fs based database that can't be on a case insensitive file system. 10:36:09
@ivy:faggot.shivydone it all11:51:37
@ivy:faggot.shivyahh easy11:51:42
@ivy:faggot.shivyworks on mine perfectly11:51:46
@ivy:faggot.shivylet's get that metadata fixed then, and i can rebase on it11:52:20
@ivy:faggot.shivy also sterni i dont think ur ofborg will work 11:54:26
30 Sep 2025
@bglgwyng:matrix.orgbglgwyngDoes nixpkgs.haskell do sometihng special on HLS, wrapping with some env vars or something? I found that HLS can't find the right package db I configured.04:23:10
@bglgwyng:matrix.orgbglgwynghttps://discord.com/channels/280033776820813825/505370075402862594/1422409401859575969 this is relevant04:23:18
@maralorn:maralorn.demaralornNo, it doesn’t. HLS asks e.g. cabal-install, cabal-install looks at ghc. ghc has the right package db. It’s relevant that you start hls from the right nix-shell for your projetc so that the correct ghc is available.07:11:10

Show newer messages


Back to Room ListRoom Version: 6