!RbXGJhHMsnQcNIDFWN:nixos.org

Haskell in Nixpkgs/NixOS

744 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.org147 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
25 Sep 2025
@sternenseemann:systemli.orgsterni (he/him)so you need to make sure that the splitmix version is consistent as well11:58:33
@bglgwyng:matrix.orgbglgwyngah, I'll figure out why 2 random packages are built, but in my case, build with duplicated packages should work well since I explicitly override them by plan.json result11:59:48
@bglgwyng:matrix.orgbglgwyngI suppose that we don't have force generic-builder to use a specific package with id12:00:43
@bglgwyng:matrix.orgbglgwyng* I suppose that we don't have a way to force generic-builder to use a specific package with id12:01:26
@maralorn:maralorn.demaralornI think Setup.hs has a mode to do that. But we currently don’t use it in the generic-builder and it might be non trivial.12:02:16
@bglgwyng:matrix.orgbglgwyngThanks! but, wht does 'non trivial' mean here?12:03:04
@maralorn:maralorn.demaralornIt 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:maralorn.demaralornDoes not sound insurmantable.12:12:47
@maralorn:maralorn.demaralornIt 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:maralorn.demaralorn* Does not sound insurmountable.12:13:43
@sternenseemann:systemli.orgsterni (he/him)https://cabal.readthedocs.io/en/stable/setup-commands.html#cmdoption-runhaskell-Setup.hs-configure-dependency15:26:31
@maralorn:maralorn.demaralornAh, nice.15:27:13
@maralorn:maralorn.demaralornThat’s less complicated than what I had in mind.15:27:28
@sternenseemann:systemli.orgsterni (he/him)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:maralorn.demaralorn 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

Show newer messages


Back to Room ListRoom Version: 6