!RbXGJhHMsnQcNIDFWN:nixos.org

Haskell in Nixpkgs/NixOS

755 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.org150 Servers

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


SenderMessageTime
13 Mar 2026
@sternenseemann:systemli.orgsterni (he/him)i thought 9.12.4 was never coming out but rc1 has been uploaded today so19:59:07
@ijouw:matrix.orgijouw 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
@alexfmpe:matrix.orgalexfmpeI have a "devenv" project with basically just a shell.nix with a nixpkgs pin and haskell tooling23:35:01
@alexfmpe:matrix.orgalexfmpe 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
@alexfmpe:matrix.orgalexfmpeif 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 branch23:38:09
@alexfmpe:matrix.orgalexfmpe* I have a "devenv" project with basically just a shell.nix with a nixpkgs pin for haskell tooling23:38:30
@alexfmpe:matrix.orgalexfmpe

or pinning unstable in a central haskell project that i need to pull from manually.

so I guess this, but pin current haskell-updates

23:40:08
@alexfmpe:matrix.orgalexfmpe also much better for caching than import <nixpkgs> or nix-shell -p cabal-install ghc ghcid 23:41:00
@ijouw:matrix.orgijouwIs there a binary cache? (Currently building some libraries i know i do not depend on in my project).23:58:45

Show newer messages


Back to Room ListRoom Version: 6