Haskell in Nixpkgs/NixOS | 719 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.org | 142 Servers |
| Sender | Message | Time |
|---|---|---|
| 12 Sep 2025 | ||
Actually I think it happens while regenerate-hackage-packages.sh calls regenerate-transitive-broken-packages.sh | 13:14:27 | |
| https://github.com/NixOS/nixpkgs/issues/400784 I see there's this issue which was closed by sterni last week, I was able to reproduce it :D I have nix (Nix) 2.28.4 | 14:08:19 | |
| * https://github.com/NixOS/nixpkgs/issues/400784 I see there's this issue which was opened by sterni which was closed last week, I was able to reproduce it :D I have nix (Nix) 2.28.4. I'm trying to update to 2.28.5 which seems to be the latest on stable | 14:11:55 | |
| Seems to happen also with Nix version 2.30.2 and 2.30.3, I first saw this on my macOS system and then I switched to NixOS to see it also happening there | 14:24:34 | |
| Anyone recognize this?
From 092c565d333be1e17b4779ac22104338941d913f (~5 days ago) | 20:37:13 | |
| darwin? | 21:04:11 | |
| nope, Linux - but CircleCI | 21:20:02 | |
In reply to @jean-paul.:matrix.org Just guessing, but is it because the kernel has IPv6 disabled via sysctl or perhaps even via kconfig? Nix builds are sensitive to the host kernel. | 22:17:23 | |
| 13 Sep 2025 | ||
| 09:46:10 | ||
| I know the nixpkgs build of GHC edits the settings file, so I wanted to give y'all a heads up that the ghc-toolchain line of work is replacing the settings file, so it's likely that you'll need to make some changes here. See: https://gitlab.haskell.org/ghc/ghc/-/merge_requests/14500 | 13:48:05 | |
| * I know the nixpkgs build of GHC edits the settings file, so I wanted to give y'all a heads up that the ghc-toolchain line of work is replacing the settings file, so it's likely that you'll need to make some changes here. See: https://gitlab.haskell.org/ghc/ghc/-/merge_requests/14554 | 13:48:56 | |
| Seems likely I guess. I don't know how to learn about CircleCI's kernel configuration. Annoyingly, zlib test suite also fails. Seems like that should be less sensitive to the kernel but 🤷 | 14:45:54 | |
| I assume more folks than me want to use Nix on CircleCI | 14:46:10 | |
| Now I'm scared about arithmetic regressions in 9.10.3… https://github.com/Bodigrim/arithmoi/issues/223 | 14:58:30 | |
| so far nothings else like that happened, though | 14:59:08 | |
| 17:21:40 | ||
| 17:31:40 | ||
| 17:32:21 | ||
| was nothing apparently | 22:07:02 | |
| 14 Sep 2025 | ||
| 03:18:20 | ||
| 08:39:56 | ||
| 15 Sep 2025 | ||
Can we override argument passed to cabal2nix result with haskellPackages.override?For example, if I want to replace native zlib used by haskell package zlib, I can use overrideCabal to modify librarySystemDepends.However, is it possible to just override the value passed to cabal2nix, which is a lambda with arguments { mkDervation, base, ..., zlib}? | 03:38:50 | |
In reply to @bglgwyng:matrix.org cabal2nix produces a Nix script. If you mean overriding what gets passed to that script when you use callCabal2nix or callPackage then the answer is yes: put it in the attrset argument. | 03:44:27 | |
overrideCabal also works as with any other Haskell package because cabal2nix uses the same builder. | 03:46:00 | |
Yes. but haskellPackages.override { overrides = self: super: zlib = super.zlib.override { zlib = my-zlib}} doesn't work, since super.zlib is not the lambda argument, but the result of callPackages. So it's late. | 03:54:48 | |
From my understanding, when we use nixpkgs haskellPackages | 03:55:27 | |
* From my understanding, when we use nixpkgs's haskellPackages, we usually deal with the result of callPackage cabal2nix-lambda rather than cabal2nix-lambda itself? | 03:56:00 | |
this is from hackage-pacakges.nix, and I'm not sure if I have any chance to override | 03:57:11 | |
| So you want to be able to e.g. add extra arguments to the IIRC that's possible with I'm having trouble understanding why overriding the result is insufficient in your case. | 04:02:48 | |
Hmm, I tried such a thing splitmix = super.splitmix.override { testu01 = null; }; but it didn't work. | 04:06:32 | |