!RbXGJhHMsnQcNIDFWN:nixos.org

Haskell in Nixpkgs/NixOS

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

Load older messages


SenderMessageTime
25 Apr 2026
@axeman:pub.solar@axeman:pub.solar left the room.09:04:52
@eldritchcookie:matrix.orgeldritchcookieI would assume the package gets into haskell-updates in the next time they regenerate hackage-packages.nix. The HACKING.md says that each member is responsible for updating the packages for a 2 week period, i assume they must always do something in that period so they probably run the scripts at least once. Assuming they always run the scripts mentioned under the second header the scripts are ran at least once per 2 weeks, further assuming no unexpected we can expect it to take at most 2 weeks for an update. these are just assumptions based on the current documentation please have a backup plan in case it takes longer. Also why is that relevant? can you apply an overlay to the package set you use? if yes i wouldn't wait and just use callHackageDirect via the self argument of the overlay14:50:30
@eldritchcookie:matrix.orgeldritchcookie
  # callHackageDirect
  #   :: { pkg :: Text, ver :: Text, sha256 :: Text }
  #   -> AttrSet
  #   -> HaskellPackage
  #
  # This function does not depend on all-cabal-hashes and therefore will work
  # for any version that has been released on hackage as opposed to only
  # versions released before whatever version of all-cabal-hashes you happen
  # to be currently using.
  callHackageDirect =
    {
      pkg,
      ver,
      sha256,
      candidate ? false,
      rev ? {
        revision = null;
        sha256 = null;
      },
    }:
    args:
    <body>
14:55:49
@alexfmpe:matrix.orgalexfmpepretty much this, though the 2 weeks is more of a rough estimate for maintainer rotation of that duty15:25:11
@alexfmpe:matrix.orgalexfmpemost of the time we bump hackage alonside a minor stackage bump15:25:47
@alexfmpe:matrix.orgalexfmpe"Current PR:" in the channel description will show the state of current bump, so you can guesstimate (2 weeks - age) for the next15:26:29
@alexfmpe:matrix.orgalexfmpein pratice it varies wildly depending on breakage, some have taken days, some have taken several weeks15:26:47
@alexfmpe:matrix.orgalexfmpeand major stackage bumps can take months until merged15:27:05
26 Apr 2026
@aiya:catgirl.cloudaiya"why is it relevant?" if by "it" you mean my entire question, it's cause i'm trying to fix a broken package that was fixed upstream and am deciding whether it's worth it to fix in nixpkgs. if you mean just the not on stackage part, idk i thought it might've been relevant00:10:34
@alexfmpe:matrix.orgalexfmpehttps://github.com/NixOS/nixpkgs/issues/13055600:32:40
@alexfmpe:matrix.orgalexfmpe cabal v1-build and cabal v1-test workarounds seem to work on your repo 00:33:08
@eldritchcookie:matrix.orgeldritchcookiecan cabal v1-build build only some select components? i would ideally have a method that works with multiple public libraries12:53:29
@andromeda:tchncs.deandromeda I am building a package with pkgs.haskellPackages.callCabal2nix. I assume it doesn't have the capability to fetch+build source-repository-package es in cabal.project? 13:25:26
@andromeda:tchncs.deandromeda * I am building a package with pkgs.haskellPackages.callCabal2nix. I assume it doesn't have the capability to fetch+build source-repository-packages in cabal.project? 13:25:34
@alexfmpe:matrix.orgalexfmpecallCabal2nix ignores cabal.project14:11:22
@alexfmpe:matrix.orgalexfmpeso you'd need to either duplicate that override, or maybe do something like a git submodule to keep single source of truth (never tried the later method)14:12:08
@alexfmpe:matrix.orgalexfmpehackage.nix lets you take cabal.project into account, and also use the solver, but it's an entirely different beast14:12:32
@alexfmpe:matrix.orgalexfmpea more heavy handed workaround mentioned in there involves a flag to decide whether to specify build-tool-depends so you can skip it when using shellFor and let cabal get it from path there14:15:14
@alexfmpe:matrix.orgalexfmpenix-build worked for me on your repo, it's the integration between shellFor and cabal-install where things go wrong14:15:49
@andromeda:tchncs.deandromeda
In reply to @alexfmpe:matrix.org
hackage.nix lets you take cabal.project into account, and also use the solver, but it's an entirely different beast
what makes that an entirely different beast?
14:17:44
@alexfmpe:matrix.orgalexfmpehttps://input-output-hk.github.io/haskell.nix/motivation.html#comparison-with-nixpkgs14:18:25
@alexfmpe:matrix.orgalexfmpethat's somewhat outdated, it's not necessarily better for cross, but the rest stands14:19:00
@andromeda:tchncs.deandromeda that... seems like overkill. I'mma go with keeping the cabal.project in sync enough with the flake. 14:21:01
@sternenseemann:systemli.orgsternicabal-install v2 commands expect build-tool-depends to be registered in the package db which Nix environments don't do because it is wrong from the perspective of the dependency separation: build tools go to nativeBuildInputs and not into (propagated)BuildInputs. Only the latter get folded into the package db. There is an open issue about this. Only affects developer environments. Easiest workaround is to use the cabal-install v1 commands which check PATH for tools as well.14:33:49
@sternenseemann:systemli.orgsterniah alex already answered, nvm.14:34:29
@sternenseemann:systemli.orgsterni aiya: I bumped Hackage two days ago, you can follow the progress there: https://github.com/NixOS/nixpkgs/pull/510883. Giving a timeline is hard, but the answer is weeks unfortunately at the moment. 14:36:14
@aiya:catgirl.cloudaiya sterni i see, so maybe it is worth fixing, could you please elaborate on your latest comment here (https://github.com/NixOS/nixpkgs/pull/506489#discussion_r3110806985)? apologies, i don't fully understand it 20:02:42
27 Apr 2026
@ashinnv:matrix.org👿👿👿M̸̙̜̔̇Ǎ̴͎̙͔G̸̞̈N̸͔͍̝͗͋̾Ő̷͖̼͈̽̚L̷̻͚̓̔I̷̛͔̰̟̔Å̴̩̍ ̷̦̒̇͝M̷̱̠̺̉̎A̵̼̎͗͘Ỹ̸̬̲͂̕H̷̙̖͂Ē̷͉̦̌͒M̶͈̥̽̐ 👹👹👹👹😈😈😈 changed their display name from M̸̙̜̔̇Ǎ̴͎̙͔G̸̞̈N̸͔͍̝͗͋̾Ő̷͖̼͈̽̚L̷̻͚̓̔I̷̛͔̰̟̔Å̴̩̍ ̷̦̒̇͝M̷̱̠̺̉̎A̵̼̎͗͘Ỹ̸̬̲͂̕H̷̙̖͂Ē̷͉̦̌͒M̶͈̥̽̐ Houston, we've had a Microsoft to M̸̙̜̔̇Ǎ̴͎̙͔G̸̞̈N̸͔͍̝͗͋̾Ő̷͖̼͈̽̚L̷̻͚̓̔I̷̛͔̰̟̔Å̴̩̍ ̷̦̒̇͝M̷̱̠̺̉̎A̵̼̎͗͘Ỹ̸̬̲͂̕H̷̙̖͂Ē̷͉̦̌͒M̶͈̥̽̐.00:11:10
@ashinnv:matrix.org👿👿👿M̸̙̜̔̇Ǎ̴͎̙͔G̸̞̈N̸͔͍̝͗͋̾Ő̷͖̼͈̽̚L̷̻͚̓̔I̷̛͔̰̟̔Å̴̩̍ ̷̦̒̇͝M̷̱̠̺̉̎A̵̼̎͗͘Ỹ̸̬̲͂̕H̷̙̖͂Ē̷͉̦̌͒M̶͈̥̽̐ 👹👹👹👹😈😈😈 changed their display name from M̸̙̜̔̇Ǎ̴͎̙͔G̸̞̈N̸͔͍̝͗͋̾Ő̷͖̼͈̽̚L̷̻͚̓̔I̷̛͔̰̟̔Å̴̩̍ ̷̦̒̇͝M̷̱̠̺̉̎A̵̼̎͗͘Ỹ̸̬̲͂̕H̷̙̖͂Ē̷͉̦̌͒M̶͈̥̽̐ to 👿👿👿M̸̙̜̔̇Ǎ̴͎̙͔G̸̞̈N̸͔͍̝͗͋̾Ő̷͖̼͈̽̚L̷̻͚̓̔I̷̛͔̰̟̔Å̴̩̍ ̷̦̒̇͝M̷̱̠̺̉̎A̵̼̎͗͘Ỹ̸̬̲͂̕H̷̙̖͂Ē̷͉̦̌͒M̶͈̥̽̐ 👹👹👹👹😈😈😈.00:12:37
@psy1ynce:matrix.org@psy1ynce:matrix.org left the room.01:34:06

Show newer messages


Back to Room ListRoom Version: 6