Haskell in Nixpkgs/NixOS | 703 Members | |
| For discussions and questions about Haskell with Nix, cabal2nix and haskellPackages in nixpkgs | Current Docs: https://haskell4nix.readthedocs.io/ | 140 Servers |
| Sender | Message | Time |
|---|---|---|
| 15 Sep 2025 | ||
| Nope, build time. | 13:55:29 | |
| but that's not C | 13:55:39 | |
| I mean it's Hugs outputting that right | 13:55:50 | |
| so it's Hugs runtime | 13:55:55 | |
The NotReallyAType comes from base's autoconf script somehow not finding the corresponding Haskell type for a few C types. | 13:56:31 | |
| I see | 13:58:14 | |
| probably there are new warnings/errors in GCC confusing it | 13:58:32 | |
| that happens a lot in autoconf | 13:58:41 | |
| check config.log | 13:58:43 | |
| you'll probably see some ancient looking C program that needs adapting | 13:58:56 | |
you should of course autoreconfHook and get it on latest autotools | 13:59:10 | |
| Thanks for the advice. I'll take a look when I get to work on the PRs. | 14:05:39 | |
| I realized that I diagnosed the issue wrong | 15:02:06 | |
Only the last one failed with 'error: function 'anonymous lambda' called without required argument 'testu01'' | 15:02:33 | |
| Here is the reproducer https://github.com/bglgwyng/haskellPackages-override | 15:02:59 | |
*
Only the last one failed with | 15:03:21 | |
I can see testu01 in the arguments of cabal2nix-splitmix, but somehow the override failed. | 15:04:08 | |
| I have a hard time getting protoc (on the PATH) while building a package with callCabal2Nix. It's used by cabal extension. | 15:20:20 | |
| Are there any tricks to troubleshooting that? | 15:21:06 | |
keypusher: cabal2nix does not really have the ability to do that automatically since Cabal does not allow specifying a dependency on a build tool that is not itself a Cabal package. You need to use addBuildTools or the like from haskell.lib.compose. | 15:32:07 | |
bglgwyng: on what system does packages.splitmix2 fail to evaluate? | 15:36:34 | |
| Oh ok. I tried googling "haskell.lib.compose addBuildtools" but came up a bit short. You don't happen to have some useful url? | 15:37:31 | |
| thanks btw! | 15:37:53 | |
bglgwyng: the testu01 test suite is only buildable on linux, Cabal discards this dependency on non-linux, you can force the platform to use with e.g. --system x86_64-linux | 15:38:40 | |
| keypusher: https://nixos.org/manual/nixpkgs/stable/#haskell-trivial-helpers | 15:39:11 | |
| it's x86_64-linux | 15:52:22 | |
| I haven't trie don the other platforms | 15:53:24 | |
|
So this looks fine. | 15:54:59 | |
| ahh now I understand the issue. | 15:56:50 | |
| The problem with override is that it depends on initially computing the derivation successfully. This doesn't work if an argument is missing which is the case here with
| 15:59:14 | |