!RbXGJhHMsnQcNIDFWN:nixos.org

Haskell in Nixpkgs/NixOS

753 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.org150 Servers

Load older messages


SenderMessageTime
29 May 2026
@alex:tunstall.xyzAlexOk, found the commit (it was).11:04:03
@alexfmpe:matrix.orgalexfmpe
In reply to @alexfmpe:matrix.org
Hmm cabal itself seems to default to -O1
Actually... would it make sense for us to use -O2 by default?
17:01:12
@alexfmpe:matrix.orgalexfmpeI'm not sure exactly how much that slowdowns compilation and don't know the benefit for cpu/memory what with ghc not doing whole-program optimization, but it might also decrease binary size which is a win on nixpkgs, hydra etc?17:03:28
@alexfmpe:matrix.orgalexfmpewonder if just building cabal itself with -O2 would make compiling everything else faster enough that it pays for itself17:04:52
@teoc:matrix.orgTeo (he/him)Often -O2 is not worth it17:07:52
@teoc:matrix.orgTeo (he/him)It's the sort of thing that should be benchmarked on a case by case basis17:08:41
@teoc:matrix.orgTeo (he/him)Redacted or Malformed Event17:08:42
31 May 2026
@whispers:catgirl.cloudwhispers [& it/fae] hii! i have a procedural haskellPackages question. i have a few packages i'd eventually like to mark broken (haskellPackages.gi-soup2, haskellPackages.spike) because they depend on the libsoup_2_4, and i'd like to get rid of that (not yet, but planning to look into it soon). the dependency is defined in hackage-packages.nix, but aiui that's not something you're supposed to touch directly. where in nixpkgs would i (a) drop the dependency on the system library so that we don't get eval failures, and (b) mark it as broken? i'm looking through the manual and haskell-modules/HACKING.md but can't find anything that seems immediately relevant 01:35:33
@whispers:catgirl.cloudwhispers [& it/fae] hii! i have a procedural haskellPackages question. i have a few packages i'd eventually like to mark broken (haskellPackages.gi-soup2, haskellPackages.spike) because they depend on the libsoup_2_4 derivation, and i'd like to get rid of that (not yet, but planning to look into it soon). the dependency is defined in hackage-packages.nix, but aiui that's not something you're supposed to touch directly. where in nixpkgs would i (a) drop the dependency on the system library so that we don't get eval failures, and (b) mark it as broken? i'm looking through the manual and haskell-modules/HACKING.md but can't find anything that seems immediately relevant 02:02:58
@alexfmpe:matrix.orgalexfmpeprobably https://github.com/NixOS/nixpkgs/blob/haskell-updates/pkgs/development/haskell-modules/configuration-common.nix 13:33:21
@alexfmpe:matrix.orgalexfmpeor configuration-nix.nix, if it's due to nix(pkgs) specific reasons, rather than general distro things13:34:19
@sternenseemann:systemli.orgsterni (he/him)if the library is removed, the dependency will also be removed on the next regeneration.14:03:46
@sternenseemann:systemli.orgsterni (he/him)libs can be marked broken in the generator's configuration14:04:37
@aiya:catgirl.cloudaiyaRedacted or Malformed Event17:44:16
@whispers:catgirl.cloudwhispers [& it/fae]seems to work, thank you both!19:37:51
1 Jun 2026
@bglgwyng:matrix.orgbglgwyng Is is possible to use wasm compiler with pkgs.haskellPackages now? It doesn't seem so. 13:33:25
@alexfmpe:matrix.orgalexfmpeTL;DR: not yet https://github.com/NixOS/nixpkgs/pull/22500013:59:22
@alexfmpe:matrix.orgalexfmpeUse ghc-wasm-meta for now13:59:34
3 Jun 2026
@philipwilk:matrix.orgJade w changed their display name from Philip W to Jade w.15:01:19
4 Jun 2026
@callmeecho:matrix.orgEcho changed their profile picture.04:23:34
@sternenseemann:systemli.orgsterni (he/him)I think downgrading is no longer an option. https://github.com/NixOS/nixpkgs/pull/52796212:53:48
@artem.types:matrix.orgArtem sterni: 4.17 is good enough: it doesn't break the PVP... 12:54:51
@artem.types:matrix.orgArtem also, sterni , regarding https://github.com/NixOS/nixpkgs/pull/521260#issuecomment-4622508007 let me know what you think. I think https://github.com/NixOS/nixpkgs/pull/520243 looks much better than the last time you looked at it. Even it's LLM-assisted, I think it's a good step forward. 14:02:50
@alexfmpe:matrix.orgalexfmpeon our stackage nightly bump, HLS is broken on 9.10 due to apply-refact what I don't understand is how we made it work on master as that dep was always there on cabal but was missing from hackage-packages.nix14:52:34
@alexfmpe:matrix.orgalexfmpe* on our stackage nightly bump, HLS is broken on 9.10 due to its dep, apply-refact, being broken on 9.10 period what I don't understand is how we made it work on master as that dep was always there on cabal but was missing from hackage-packages.nix14:52:47
@alexfmpe:matrix.orgalexfmpe huuuuh technically the dependency is on HLS's cabal file, but on the hls-hlint-plugin sublibrary 14:53:54
@alexfmpe:matrix.orgalexfmpewe've been adding apply-refact manually https://github.com/NixOS/nixpkgs/blob/0a130039b0ecb0f9690581660080baca073fdd5a/pkgs/development/haskell-modules/configuration-common.nix#L237 which makes sense given the dep wasn't on hackage-packages.nix (presumably due to it being behind a cabal conditional) but then why does the dep show up now14:59:46
@sternenseemann:systemli.orgsterni (he/him)because the conditionals are resolved with impl being ghc 9.1217:44:09
@alexfmpe:matrix.orgalexfmpeAaah17:44:22
6 Jun 2026
@hellwolf:matrix.orghellwolf

trying to fixing my part in haskell-updates. however, facing this optics package issue Is it being dealt:

error: Cannot build '/nix/store/6fj48f1agb8y7wyvjxqv8lmc6jabaaxq-optics-0.4.2.1.drv'.
       Reason: builder failed with exit code 1.
       Output paths:
         /nix/store/2gvmjpzcgqa8xhq47mz9xrd5w2hm86pw-optics-0.4.2.1
         /nix/store/xkdgyjjf6wvb5lp51m940ffrg81lwywf-optics-0.4.2.1-doc

11:38:19

Show newer messages


Back to Room ListRoom Version: 6