| 27 Sep 2025 |
bglgwyng | How can I fix this issue? | 13:33:16 |
bglgwyng | It seems that Setup.hs configure doesn't provide options to specify components to build | 13:34:06 |
bglgwyng | . | 13:43:57 |
maralorn | There should be an option to disable building of the executable and that should actually prevent the random dependency from executableHaskellDepends from being loaded into the package-db. (Rather certain that logic exists in the generic-builder.nix) If not or when you use another way to disable building of the executable you can do something like super.operational.override { random = null; }. | 14:13:57 |
bglgwyng | Yes. I found the workaround but I want to fix generic-builder to handle setBuildTarget properly. | 14:33:31 |
bglgwyng | https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/haskell-modules/generic-builder.nix#L743 | 14:46:41 |
bglgwyng | I need a way to specify build targets in Setup.hs's configure phase to fix it | 14:47:05 |
bglgwyng | But it doesn't support unfortunately | 14:47:56 |
teo (they/he) | Haskell.nix seems to pass the name of the component to configure https://github.com/input-output-hk/haskell.nix/blob/751e1561c3fbc0a5cf136a689b70bbce567852a8/builder/comp-builder.nix#L239 | 15:20:27 |
yliceee | I'm getting
Error while expanding response file: /tmp/nix-shell.iCOh0S/ghci519500-0.rsp: openFile: does not exist (No such file or directory)
in the LSP mode stderr at random times in a haskell project using cabal/nix/direnv/emacs (with LSP mode and envrc mode) | 21:22:43 |
yliceee | im unable to consistently replicate. has anyone else seen this? | 21:23:22 |
yliceee | * I'm getting
Error while expanding response file: /tmp/nix-shell.iCOh0S/ghci519500-0.rsp: openFile: does not exist (No such file or directory)
in the LSP mode stderr at random times in a haskell project using cabal/nix/direnv/emacs (with envrc mode) | 21:23:43 |
alexfmpe | I've seen that a few times | 22:54:40 |
alexfmpe | I ended up disabling direnv as it's been too unreliable for me | 22:56:12 |
alexfmpe | Also kept getting into stale states forcing me to rm .direnv after a lot of "how is this possible" | 22:57:08 |
| 28 Sep 2025 |
| libman joined the room. | 05:35:06 |
sterni | bglgwyng: as far as I know, there is no way to specify the build targets at configure time | 10:28:22 |
sterni | The 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 |
sterni | interesting that doesn't seem to be documented? | 10:31:01 |
sterni | it would be nice if we could set testTargets and buildTargets at configure time already | 10:31:28 |
bglgwyng | Indeed I tried the same thing but it didn't work | 11:46:44 |
bglgwyng | Maybe haskell.nix uses its own patched version? | 11:47:06 |
bglgwyng | No, it doesn't. | 13:20:35 |
sterni | maybe 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 left the room. | 03:15:05 |
bglgwyng | I 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 joined the room. | 04:22:03 |
ivy | i wanna see if i can fix kmonad on macos | 04:23:39 |
ivy | im unsure how i can "unbreak" like i deleted the line from main.yaml | 04:23:58 |
ivy | but how do i regenerate package-list | 04:24:11 |