Haskell in Nixpkgs/NixOS | 732 Members | |
| For discussions and questions about Haskell with Nix, cabal2nix and haskellPackages in nixpkgs | Current Docs: https://haskell4nix.readthedocs.io/ | 145 Servers |
| Sender | Message | Time |
|---|---|---|
| 13 Mar 2026 | ||
I have multiple haskellPackages.developPackage projects i develop infrequently (it's ok if build fails sometimes) using cabal.I use import <nixpkgs> {} because i do not want to manually set versions for their ghc toolchain, and have them all use the same compiler (they should update using a centrally defined value ; i used ghcup before and it installed 200gb of ghc and libs in a year). I now want to test a newer version of ghc (i want to test the haskell debugger project) but my stable nixpkgs only has ghcHEAD with version >= 9.14 (but which appears to be not yet supported by cabal (or is the cabal in my ghcHEAD an old one?)). Is there a way to have similar behavior?I was thinking of copying haskell.packages.ghc___ from unstable into my local nixpkgs or pinning unstable in a central haskell project that i need to pull from manually. Any advice is welcome. | 23:11:58 | |
| I have a "devenv" project with basically just a shell.nix with a nixpkgs pin and haskell tooling | 23:35:01 | |
that way it's independent of my system nixpkgs, yet it works as a default environment for all projects where I cba doing anything fancier than <nixpkgs> | 23:35:47 | |
| if you really want a nixpkgs-provisioned debugger, you probably want to point to haskell-updates branch, as https://github.com/NixOS/nixpkgs/pull/496489 is fairly recent and not yet in unstable branch | 23:38:09 | |
| * I have a "devenv" project with basically just a shell.nix with a nixpkgs pin for haskell tooling | 23:38:30 | |
so I guess this, but pin current haskell-updates | 23:40:08 | |
also much better for caching than import <nixpkgs> or nix-shell -p cabal-install ghc ghcid | 23:41:00 | |
| Is there a binary cache? (Currently building some libraries i know i do not depend on in my project). | 23:58:45 | |
| 14 Mar 2026 | ||
| 🤔 Maybe i should try it with a minimal project, since nix-shell failed. | 00:01:21 | |
| 00:02:10 | |
| you might be building some transitive deps, or deps of tooling (e.g. cabal-install, cabal2nix) | 00:03:01 | |
| It started building basement foundation and happy (it likely was compiling cabal and hoogle ) | 00:03:21 | |
| I think there's less caching for darwin, only happens on master and release branches or something | 00:03:39 | |
| historically I've seen my m1 get less caching of haskell-updates than my linux | 00:04:03 | |
| I am running nixos | 00:04:32 | |
| same | 00:04:50 | |
| try the above rev | 00:04:54 | |
| and the same --dry-run | 00:05:03 | |
| Oh, i was stil using ghcHEAD... | 00:07:09 | |
| git pull is taking a while | 00:17:57 | |
| Will sleep first. Thank you for the help and good night. | 00:37:40 | |
| It worked, thanks. | 14:52:34 | |
| Having it integrate with developPackage seems complicated. Will try shell env only. | 15:30:26 | |
| 18:48:52 | ||
| 19:24:31 | ||
| 21:22:30 | ||
| 15 Mar 2026 | ||
| 13:40:03 | ||
| Does anyone know what is blocking this pr: https://github.com/NixOS/cabal2nix/pull/667? Because I would like to get a move along so I can close the opentracing tracking issue. | 13:41:02 | |
| * sterni: what is blocking this pr: https://github.com/NixOS/cabal2nix/pull/667? Because I would like to get a move along so I can close the opentracing tracking issue. | 13:41:18 | |
| I think wolfgang doesn't have the time for it at the moment, but I'm not sure. | 13:42:04 | |