Haskell in Nixpkgs/NixOS | 727 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.org | 146 Servers |
| Sender | Message | Time |
|---|---|---|
| 9 Jan 2026 | ||
| liquid haskell looks really cool | 19:48:59 | |
apparently, core liquid packages in nixpkgs are built without liquid annotations for the same reason: Haddock was enabled by default. So, now I need to disable it there. haskell-modules/configuration-nix.nix seems like the right place? And it should look fairly similar (oveerideCabal) I guess. | 20:46:49 | |
| 10 Jan 2026 | ||
| 05:15:41 | ||
| 11:28:04 | ||
| mates | 13:02:04 | |
| Is there a way to add a haskell package as a flake (i.e. some other haskell project with its own flake.nix) into the haskellPackages of my own haskell project? | 13:03:37 | |
| are there examples of this out there? | 13:03:45 | |
In reply to @tks_123:matrix.orgyup, but i hope they expose a package.nix with the package recipe alone, so you could haskellPackages.callPackage it | 13:25:26 | |
| (for the sake of using the same version and edition of GHC) | 13:26:01 | |
| Its complicated, the default flake interface is not really meant to be composable. | 16:03:30 | |
| Some flake authors design their flake in a way that they expose a) the package and b) an overlay which injects the package. | 16:04:05 | |
| 19:38:17 | ||
| so the 25.11 "default" GHC is 9.10, but LLVM only has 18-20 which is incompatible. is this intentional, or is LLVM 15 supposed to be in nixpkgs just to support 9.10 i back-searched this chat for LLVM but only found conversation on bumping LLVM 12 -> 15 | 19:50:59 | |
| we backport patches for newer LLVM support to older GHCs | 19:52:34 | |
| (there aren't that many, the backend doesn't change much since it uses the LLVM textual IR format) | 19:52:52 | |
| (mostly it's just backporting bumps to the version number it checks) | 19:53:02 | |
see pkgs/development/compilers/ghc/common-llvm-patches.nix | 19:53:14 | |
| 11 Jan 2026 | ||
| 01:54:59 | ||
What should I do if Nix is refusing to build a Haskell Library for me? Right now, hip is failing to build! https://hackage.haskell.org/package/hip | 03:30:09 | |
| 03:36:54 | |
| 13:34:01 | ||
| 15:04:53 | ||
| 16:16:06 | ||
| 12 Jan 2026 | ||
when you get that message, most likely it's a compilation error. try running NIXPKGS_ALLOW_BROKEN=1 nix-shell -p haskellPackages.hip to isolate the error | 02:03:47 | |
| here's the error i got when running that command: | 02:04:06 | |
| 02:04:12 | |
| someone's already opened an issue about this upstream | 02:11:34 | |
| * someone's already opened an issue about this upstream as for a fix, you can always increase the tick tolerance as specified in the error message above or reduce inlining in | 02:12:23 | |
so i'm trying to fix a package that requires random>=1.3 as a dependency but the version of random in nixpkgs is 1.2. what's the best practice here? do i: | 02:19:34 | |
| * so i'm trying to fix a package that requires
| 02:21:05 | |