!RbXGJhHMsnQcNIDFWN:nixos.org

Haskell in Nixpkgs/NixOS

720 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.org143 Servers

Load older messages


SenderMessageTime
14 Aug 2025
@sternenseemann:systemli.orgsterni (he/him) export PATH="$PWD/dist/build/fixpoint:$PATH" or similar should work 10:34:13
@dandart:matrix.orgUraraka ~ Ochaco joined the room.11:41:24
@manuelbaerenz:matrix.orgManuel BärenzRedacted or Malformed Event12:03:39
@artem.types:matrix.orgArtemoh my, I should have guessed. Thanks all, liquid-fixpoint works now. I'm looking into liquidhaskell now. It currently fails because it fetches the latest version from Hackage (it's not on Stackage), and it's not going to work with GHC from the latest LTS because: (a) it's tightly coupled with the GHC version so much so they usually only support one GHC version at a time, (b) the latest from Hackage will usually support only the latest released GHC. Question: how do I request a specific version of a package from Hackage to serve as the default haskellPackages version?15:09:03
@artem.types:matrix.orgArtemthere must be examples somewhere but I'm not very good at finding the minimal one. I see overrideSrc and overrideCabal but both look a bitt low level15:10:01
@artem.types:matrix.orgArtem I'm guessing the versions are specified in configuration-hackage2nix/main.yml 15:23:38
@artem.types:matrix.orgArtemit says "# This is a list of packages with versions from the latest Stackage LTS release." sadly, it doesn't explicitly say if I can add packages outside of LTS in there15:24:56
@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
@artem.types:matrix.orgArtem

modulo the extension .sh, that started doing something but failed with:

Running hackage2nix to regenerate pkgs/development/haskell-modules/hackage-packages.nix …
 .Regenerating transitive-broken.yaml … (pass --fast to /home/artem/nixpkgs/maintainers/scripts/haskell/regenerate-hackage-packages.sh to skip this step)
these 4 paths will be fetched (0.31 MiB download, 1.14 MiB unpacked):
  /nix/store/mmi8dxjdsv8r9jxnyd3dqwqakxda1796-jq-1.8.1
  /nix/store/kwxm52f2g9ap890pfj2j4ryzq2gj2i69-jq-1.8.1-bin
  /nix/store/h0xayyfsl9f17bss0x1xhhz7c3n5fq43-jq-1.8.1-dev
  /nix/store/1q3rqjv37glfxsmqcyvnz3ghqj1wjw4a-oniguruma-6.9.10-lib
copying path '/nix/store/1q3rqjv37glfxsmqcyvnz3ghqj1wjw4a-oniguruma-6.9.10-lib' from 'https://cache.nixos.org'...
copying path '/nix/store/mmi8dxjdsv8r9jxnyd3dqwqakxda1796-jq-1.8.1' from 'https://cache.nixos.org'...
copying path '/nix/store/kwxm52f2g9ap890pfj2j4ryzq2gj2i69-jq-1.8.1-bin' from 'https://cache.nixos.org'...
copying path '/nix/store/h0xayyfsl9f17bss0x1xhhz7c3n5fq43-jq-1.8.1-dev' from 'https://cache.nixos.org'...
error: access to absolute path '/home/artem/.local' is forbidden in restricted mode

15:53:55
@artem.types:matrix.orgArtemI'll have to get back to this. In the meantime, I'm submit a PR unbreaking liquid-fixpoint at least: https://github.com/NixOS/nixpkgs/pull/433722 let me know if it's horribly formatted and against the guidelines...16:10:30
@b:chreekat.netchreekatLooks like it's under "grandfathered dependencies", so probably needs a new champion . https://github.com/commercialhaskell/stackage/blob/master/build-constraints.yaml#L565716:10:43
@sternenseemann:systemli.orgsterni (he/him) Artem: may be https://github.com/NixOS/nixpkgs/issues/400784, try running with --fast 16:34:07
@maralorn:maralorn.demaralornYes17:09:10
@maralorn:maralorn.demaralornAh, oops.17:09:24

Show newer messages


Back to Room ListRoom Version: 6