!RbXGJhHMsnQcNIDFWN:nixos.org

Haskell in Nixpkgs/NixOS

742 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.org148 Servers

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


SenderMessageTime
14 Aug 2025
@artem.types:matrix.orgArtembut the name of its "extra-packages" field suggested that it's the right place15:25:47
@maralorn:maralorn.demaralornThere is stackage.yaml file, which is auto generated.15:25:57
@artem.types:matrix.orgArtemI don't need that one for adding a non-stackage package, right?15:26:50
@maralorn:maralorn.demaralornYeah.15:27:18
@maralorn:maralorn.demaralornThen there is extra-packages which gives additional versioned attributes.15:28:14
@artem.types:matrix.orgArtem my slight worry about configuration-hackage2nix/main.yml#extra-packages is that every package on that list has a comment saying why it's there, and it's very specific. This makes me question that it's the right place. Unless I'm expected to say "# it's a cool package not on Stakage, but I want it in nixpkgs"... 15:28:24
@maralorn:maralorn.demaralornAnd default-package-overrides which modifies which version the default attribute has.15:29:17
@artem.types:matrix.orgArtembut adding a package not from Stackage is shouldn't overide anything, so this field isn't applicable, right?15:31:41
@artem.types:matrix.orgArtem* but adding a package not from Stackage shouldn't overide anything, so this field isn't applicable, right?15:31:48
@artem.types:matrix.orgArtem* but adding a package not from Stackage shouldn't override anything, so this field isn't applicable, right?15:31:52
@artem.types:matrix.orgArtem do I need to run anything after updating configuration-hackage2nix/main.yml? the change doesn't seem to get picked up 15:34:03
@maralorn:maralorn.demaralornNo, the field is applicable because hackage2nix always has a notion for the default. The default default is the newest version.15:37:06
@b:chreekat.netchreekatGet it included in stackage? 🙂15:37:20
@maralorn:maralorn.demaralornYes maintainers/scripts/haskell/regenerate-hackage-packages.nix15:38:01
@artem.types:matrix.orgArtemyes, I'm contemplating this now. There are some traces of it being there though: https://github.com/commercialhaskell/stackage/commit/c5e992f2a5eb9727c880e92be677d7ded665dc65 so, I guess it's just not the right LTS15:43:25
@artem.types:matrix.orgArtem chreekat: although I don't see it in any of the latest LTSs per GHC versions (I checked for GHC 9.10 and 9.8) 15:45:30
@artem.types:matrix.orgArtemare you saying I should use "default-package-overrides" instead of "extra-packages" for a package outside of LTS? (I'm sorry for being slow!)15:46:38

Show newer messages


Back to Room ListRoom Version: 6