!RbXGJhHMsnQcNIDFWN:nixos.org

Haskell in Nixpkgs/NixOS

703 Members
For discussions and questions about Haskell with Nix, cabal2nix and haskellPackages in nixpkgs | Current Docs: https://nixos.org/manual/nixpkgs/unstable/#haskell | Current PR: https://github.com/nixos/nixpkgs/pulls?q=is%3Apr+is%3Aopen+head%3Ahaskell-updates | Maintainer Docs: https://github.com/NixOS/nixpkgs/blob/haskell-updates/pkgs/development/haskell-modules/HACKING.md | More Nix: #community:nixos.org | More Haskell: #haskell-space:matrix.org | Merger Schedule: https://cloud.maralorn.de/apps/calendar/p/H6migHmKX7xHoTFa/dayGridMonth/now | Join #haskell.nix:libera.chat for question about the alternative haskell.nix infrastructure139 Servers

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


SenderMessageTime
25 Aug 2025
@maralorn:maralorn.demaralorn* Translating pins from upstream into a different mechanism to track dependencies is kinda going a bit against the grain.20:33:54
26 Aug 2025
@morgan.arnold:matrix.orgmra Hm, maybe I'm being a bit stupid trying to turn this into a flake. I guess I could just keep the existing nix stuff from the template? I'm just mildly annoyed about not being able to use nix develop. I thought that I would just be able to do something like inputs.nixpkgs = import ./nix/nixpkgs {};, in my flake but if I do this I get the error "expected a set but got a thunk", so I guess I've misunderstood something? 02:54:59
@morgan.arnold:matrix.orgmraSorry if it's not obvious, but I'm not exactly an expert with Nix :P02:55:14
@maralorn:maralorn.demaralorn
In reply to @morgan.arnold:matrix.org
Hm, maybe I'm being a bit stupid trying to turn this into a flake. I guess I could just keep the existing nix stuff from the template? I'm just mildly annoyed about not being able to use nix develop. I thought that I would just be able to do something like inputs.nixpkgs = import ./nix/nixpkgs {};, in my flake but if I do this I get the error "expected a set but got a thunk", so I guess I've misunderstood something?
Well. The problem causing your error message is that flakes only look like nix but only a subset is allowed.
07:09:25
@maralorn:maralorn.demaralornThe problem from what I can tell is that the template uses multiple overrides to fix the build not just pinning nixpkgs. That's why you still encountered an error when you pinned the correct nixpkgs.07:10:13
@maralorn:maralorn.demaralornThe old style equivalent to nix develop would be nix-shell07:11:09
27 Aug 2025
@artem.types:matrix.orgArtemThanks guys for posting all the updates on the 9.8->9.10 PR. Very informative and helpful for explaining how the many processes work. ❤️00:39:27
@thibaut:fsl.shThibaut joined the room.13:35:37
@thibaut:fsl.shThibautHello! Is this the space to ask for a package update? I am interested in the dhall packages 🙏13:39:23
@toonn:matrix.orgtoonn Thibaut: Aren't they part of Stackage? 13:42:26
@thibaut:fsl.shThibautI wasn't sure what was Stackage reading the nixpkgs stuff, indeed it is! I guess it is normal that the stackage version is different from the last github's release? apparently it is, 1.42.2 matches github's version 23.1.0, so it looks up to date?13:46:22
@toonn:matrix.orgtoonn Thibaut: It depends on the Stackage snapshot. But Nixpkgs is more or less a recent Stackage snapshot with everything else filled in from Hackage. 13:51:16
@toonn:matrix.orgtoonn It is geared towards supporting Haskell packages in Nixpkgs rather than Haskell development. 13:51:44
@toonn:matrix.orgtoonn For development without the goal of packaging for Nixpkgs, I'd recommend simply using Cabal or Stack as you would on any other system. 13:52:43
@thibaut:fsl.shThibautThanks. I understand now 👍️13:52:45
@thibaut:fsl.shThibautI just use the dhall tools so it's fine for me13:53:01
28 Aug 2025
@bglgwyng:matrix.orgbglgwyng It seems haskell.nix doesn't handle private repository in cabal.project(repository ... stanza) correctly 06:22:32
@bglgwyng:matrix.orgbglgwyngIt tries to download the package while building which leads the build to failure06:23:00

Show newer messages


Back to Room ListRoom Version: 6