Haskell in Nixpkgs/NixOS | 697 Members | |
| For discussions and questions about Haskell with Nix, cabal2nix and haskellPackages in nixpkgs | Current Docs: https://haskell4nix.readthedocs.io/ | 138 Servers |
| Sender | Message | Time |
|---|---|---|
| 15 Aug 2025 | ||
| makes sense, thank you | 05:22:59 | |
| 18 Aug 2025 | ||
| how good is the Haskell builder with custom setups? I'm getting a pretty basic error when a custom setup uses a function from another package, and that package is listed in the cabal file's custom-setup:setup-depends, but when I'm building it with Nix, I'm getting "module not found" on the import-line in Setup.hs for an import from that other package. That's liquidhaskell, by the way. The import line is here: https://github.com/ucsd-progsys/liquidhaskell/blob/6baa675f6bb000d016f0c859d7f865263679dc43/Setup.hs#L3 and it comes from the liquidhaskell-boot package. I am building it on top of my branch from https://github.com/NixOS/nixpkgs/pull/433722: I just enabled liquidhaskell and liquidhaskell-boot on top of the packages that are enabled in that PR. This should be the entirety of the dependency tree of liquidhaskell... | 17:25:51 | |
| * how good is the Haskell builder with custom setups? I'm getting a pretty basic error when a custom setup uses a function from another package, and that package is listed in the cabal file's custom-setup:setup-depends, but when I'm building it with Nix, I'm getting "module not found" on the import-line in Setup.hs for an import from that other package. That's liquidhaskell, by the way. The import line is here: https://github.com/ucsd-progsys/liquidhaskell/blob/6baa675f6bb000d016f0c859d7f865263679dc43/Setup.hs#L3 and it comes from the liquidhaskell-boot package. I am building it on top of my branch from https://github.com/NixOS/nixpkgs/pull/433722 (with nix-build -A haskellPackages.liquidhaskell): I just enabled liquidhaskell and liquidhaskell-boot on top of the packages that are enabled in that PR. This should be the entirety of the dependency tree of liquidhaskell... | 17:26:48 | |
| * how good is the Haskell builder with custom setups? I'm getting a pretty basic error when a custom setup uses a function from another package, and that package is listed in the cabal file's custom-setup:setup-depends, but when I'm building it with Nix, I'm getting "module not found" on the import-line in Setup.hs for an import from that other package. That's liquidhaskell, by the way. The import line is here: https://github.com/ucsd-progsys/liquidhaskell/blob/6baa675f6bb000d016f0c859d7f865263679dc43/Setup.hs#L3 and it comes from the liquidhaskell-boot package. I am building it on top of my branch from https://github.com/NixOS/nixpkgs/pull/433722 (with nix-build -A haskellPackages.liquidhaskell): I just enabled liquidhaskell and liquidhaskell-boot on top of the packages that are enabled in that PR. This should be the entirety of the dependency tree of liquidhaskell... | 17:26:55 | |
| this issue (https://github.com/NixOS/nixpkgs/issues/16998) on non-Haskell setup dependencies implies that Haskell setup dependencies should work just fine. So, it's me who is at fault, clearly! | 17:31:46 | |
| I put the whole output in the thread below if it helps | 18:39:49 | |
| 18:39:58 | |
| 18:40:18 | |
| 19 Aug 2025 | ||
In reply to @artem.types:matrix.orgI've previously gotten it to work without doing anything special. I have no idea what's wrong with your case. | 00:51:40 | |
| Does haskell.nix internally generate plan.json and use it? Or it just uses pre-built package sets. | 06:18:16 | |
| bglgwyng: haskell.nix uses plan.json (at least that’s one of the available modes) | 06:53:04 | |
FTW: I made this typo again: liquidhaskell-boot = doJailbreak super.smtlib-backends-tests; and that's why liquidhaskell couldn't find a module in liquidhaskell-boot... | 14:09:50 | |
* FTR: I made this typo again: liquidhaskell-boot = doJailbreak super.smtlib-backends-tests; and that's why liquidhaskell couldn't find a module in liquidhaskell-boot... | 14:17:52 | |
| 14:23:55 | ||
| what is the better commit message / PR title for a nixpkgs PR:
or
| 14:28:57 | |
| * what is the better commit message / PR title for a nixpkgs PR:
or
? | 14:29:02 | |
| the ci parses commit messages, so if you do one commit per package it will build the right packages | 14:34:20 | |
| ouch, I did one commit for everything! just to double-check: is one commit per package a requirement? | 14:40:19 | |
| no | 14:42:05 | |
it will parse {a,b} in commit messages too | 14:56:04 | |
| all right, I'll go with the explicit list then | 14:59:09 | |
| oh cool | 15:16:34 | |
| waaaat | 16:30:59 | |
| where can I find these tidbits | 16:31:14 | |
| it's in the ofborg repo docs I think | 16:31:57 | |
| TIL | 16:42:39 | |
| https://github.com/NixOS/ofborg?tab=readme-ov-file#automatic-building | 16:42:40 | |
| 20 Aug 2025 | ||
I've looked at documentation and source code but I don't see how I can use developPackage and add additional packages to the environment (ideally they would only be added when using a shell). I guess that's done with the modifier attribute? | 18:02:08 | |
| (I'd like to add packages like HLS and hlint) | 18:02:32 | |
| how do I get a sense of when the GHC 9.10 bump will be merged into staging? I saw a long list of failures but surely not everything has to be fixed before the merge. I also saw "We only do the merge if the mergeable job is succeeding on hydra" but how do I get a sense of close it is to succeeding? | 19:39:21 | |