| 25 Sep 2025 |
maralorn | It means, that it could be that a) if you do this you need to specify the hashes of all dependencies (and I think in that mode you disable bound checking completely) and b) it might be hard to figure out the correct hashes to inject there. Basically we would be reimplementing logic which we currently rely on from Setup.hs. | 12:12:26 |
maralorn | Does not sound insurmantable. | 12:12:47 |
maralorn | It might even be feasible do improve the generic-builder to enforce the usage of passed in overrides more reliably in general. That could be cool. | 12:13:28 |
maralorn | * Does not sound insurmountable. | 12:13:43 |
sterni | https://cabal.readthedocs.io/en/stable/setup-commands.html#cmdoption-runhaskell-Setup.hs-configure-dependency | 15:26:31 |
maralorn | Ah, nice. | 15:27:13 |
maralorn | That’s less complicated than what I had in mind. | 15:27:28 |
sterni | I think the problem here is figuring out the right installed package identifier. I believe how this is computed is pretty much internal to Cabal | 15:27:35 |
maralorn | You can most certainly not know it a nix eval time. So you will probably need to do some finding through build inputs. | 15:28:33 |
| 26 Sep 2025 |
bglgwyng | Maybe I'm doing something hacky so I want to convince my self; did the same thing happen when we tried to override a pakcage with the same version in haskell.packages and different transitive dependencies? | 03:28:54 |
bglgwyng | yes this worked | 03:41:00 |
| @aspendowntime:matrix.org removed their profile picture. | 05:46:41 |
| @aspendowntime:matrix.org removed their display name Eden (they/it/she). | 05:47:00 |
| @aspendowntime:matrix.org left the room. | 05:47:41 |
bglgwyng | Where is pkgsHostTarget passed from? https://github.com/NixOS/nixpkgs/blob/5364a5ff96df5c2e3b1048914f90fc39530087c2/pkgs/development/haskell-modules/generic-builder.nix#L641 | 09:28:48 |
sterni | pkgs/stdenv/generic/setup.sh | 09:51:35 |