!RbXGJhHMsnQcNIDFWN:nixos.org

Haskell in Nixpkgs/NixOS

694 Members
For discussions and questions about Haskell with Nix, cabal2nix and haskellPackages in nixpkgs | Current Docs: https://haskell4nix.readthedocs.io/138 Servers

Load older messages


SenderMessageTime
19 Aug 2025
@artem.types:matrix.orgArtem * 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
@xvwx:matrix.dapp.org.uk@xvwx:matrix.dapp.org.uk left the room.14:23:55
@artem.types:matrix.orgArtem

what is the better commit message / PR title for a nixpkgs PR:

haskellPackages.{liquidhaskell, liqquidhaskell-boot, liquid-fixpoint, smtlib-backends-process, smtlib-backends-tests}: unbreak

or

haskellPackages.liquidhaskell and dependencies: unbreak

14:28:57
@artem.types:matrix.orgArtem *

what is the better commit message / PR title for a nixpkgs PR:

haskellPackages.{liquidhaskell, liqquidhaskell-boot, liquid-fixpoint, smtlib-backends-process, smtlib-backends-tests}: unbreak

or

haskellPackages.liquidhaskell and dependencies: unbreak

?

14:29:02
@symphorien:xlumurb.eusymphorienthe ci parses commit messages, so if you do one commit per package it will build the right packages14:34:20
@artem.types:matrix.orgArtemouch, I did one commit for everything! just to double-check: is one commit per package a requirement?14:40:19
@symphorien:xlumurb.eusymphorienno14:42:05
@emilazy:matrix.orgemily it will parse {a,b} in commit messages too 14:56:04
@artem.types:matrix.orgArtemall right, I'll go with the explicit list then14:59:09
@symphorien:xlumurb.eusymphorienoh cool15:16:34
@alexfmpe:matrix.orgalexfmpewaaaat16:30:59
@alexfmpe:matrix.orgalexfmpewhere can I find these tidbits16:31:14
@emilazy:matrix.orgemilyit's in the ofborg repo docs I think16:31:57
@alexfmpe:matrix.orgalexfmpeTIL16:42:39
@alexfmpe:matrix.orgalexfmpehttps://github.com/NixOS/ofborg?tab=readme-ov-file#automatic-building16:42:40
20 Aug 2025
@kephaspierre:matrix.orgPierre Thierry 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
@kephaspierre:matrix.orgPierre Thierry(I'd like to add packages like HLS and hlint)18:02:32
@artem.types:matrix.orgArtemhow 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
@maralorn:maralorn.demaralorn Artem: I am not sure anyone has it. We probably want to fix most of the errors here before merging: https://github.com/cdepillabout/nix-haskell-updates-status 20:04:11
@maralorn:maralorn.demaralornLast ghc bump took 4 to 5 months. But that was the worst one I can remember. We normally aim at one month and two are realistic.20:04:13
23 Aug 2025
@magthe:tchncs.deMagnus
In reply to @kephaspierre:matrix.org
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?
This is how I do it. At least at the moment, things change as I learn more Nix.
https://gitlab.com/magus/nix-setups/-/tree/main/hs-shell?ref_type=heads
15:34:30
@sternenseemann:systemli.orgsterniEval with Stackage LTS 24.6 https://hydra.nixos.org/eval/1817909?compare=181789622:01:32
@kephaspierre:matrix.orgPierre Thierry
In reply to @magthe:tchncs.de
This is how I do it. At least at the moment, things change as I learn more Nix.
https://gitlab.com/magus/nix-setups/-/tree/main/hs-shell?ref_type=heads
I finally found a way where I wrote the least possible amount in my shell.nix, I do import project.nix (I run cabal2nix . > project.nix when my cabal file changes), and I use builtins.functionArgs to see every package I need, and use that in a pkgs.mkShell { packages = [ pkgs.hlint pkgs.haskell-language-server (pkgs.haskellPackages.ghcWithPackages getDeps)]
23:26:40
24 Aug 2025
@sternenseemann:systemli.orgsterni if you have the generated file you can just use haskell.packages.${your-pkg-set}.shellFor { packages = p: [ (p.callPackage ./project.nix { }) ]; nativeBuildInputs = [ /* other tools */ ]; }. 14:10:00
@dandart:matrix.orgUraraka ~ OchacoI no longer use nix for haskell packages, they're always out of date with hackage, so I just have my shell.nix including the correct ghc and cabal and then use cabal for the rest14:34:34
@ashinnv:matrix.orgMagnolia Mayhem changed their profile picture.19:10:01
@ashinnv:matrix.orgMagnolia Mayhem changed their profile picture.23:20:56
@ashinnv:matrix.orgMagnolia Mayhem changed their profile picture.23:24:20
25 Aug 2025
@ashinnv:matrix.orgMagnolia Mayhem changed their profile picture.03:00:52
@ashinnv:matrix.orgMagnolia Mayhem changed their profile picture.03:01:08

Show newer messages


Back to Room ListRoom Version: 6