!RbXGJhHMsnQcNIDFWN:nixos.org

Haskell in Nixpkgs/NixOS

740 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.org147 Servers

Load older messages


SenderMessageTime
24 Apr 2026
@alexfmpe:matrix.orgalexfmpewell haskell.nix does allow this, but nixpkgs doesn't yet10:28:19
@alexfmpe:matrix.orgalexfmpe oh I misread, I see your subLibraryDepends is actually a map 10:29:18
@alexfmpe:matrix.orgalexfmpethen I'm confused in a different way, why only do this for libraries?10:32:10
@m1-s:matrix.orgm1-smhm maybe I misunderstood the current capabilities. I will do some more research. Thanks for your feedback!11:23:04
@alexfmpe:matrix.orgalexfmpeI mean, the only thing special about library components is that you can have a main library. So I'd expect what you're doing to be applicable to executables/benchmarks/tests12:32:12
@alexfmpe:matrix.orgalexfmpeI think most of the work is on the nixpkgs side though. We have hundreds of overrides and I'd bet over 100 of them directly rely on current structure, and the rest use dozens of utils that also do12:34:29
@alexfmpe:matrix.orgalexfmpeSo we'll need to make those utils recover current behavior with new structure, then add a migration path for component-granularity override12:35:24
@alexfmpe:matrix.orgalexfmpe* So we'll need to make those utils recover current behavior with new structure, then add a migration path for component-granularity overrides12:35:31
@alexfmpe:matrix.orgalexfmpeMaybe the way to go is actually first doing this end to end just for internal libraries which are less common, then gradually rollout to benchmarks, executables, test suites12:36:46
@aiya:catgirl.cloudaiyahow long does it usually take for a new version from hackage to make it into haskell-updates? assume the package isn't on stackage18:59:20
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
20 May 2021
@grahamc:nixos.org@grahamc:nixos.org set the history visibility to "world_readable".22:10:58
@grahamc:nixos.org@grahamc:nixos.org changed the room name to "" from "".22:10:58
@grahamc:nixos.org@grahamc:nixos.org invited @maralorn:maralorn.demaralorn.22:11:05
@maralorn:maralorn.demaralorn joined the room.22:11:13
@andi:kack.itandi- joined the room.22:30:49
@grahamc:nixos.org@grahamc:nixos.orgchanged room power levels.22:36:42
Room Avatar Renderer.22:46:20
@maralorn:maralorn.demaralorn changed the join rule to "public" from "public".22:54:26
@maralorn:maralorn.demaralorn changed the room topic to "For discussions and questions about Haskell with Nix, cabal2nix and haskellPackages in nixpkgs | Current Docs: https://haskell4nix.readthedocs.io/" from "For discussions about Haskell with Nix, cabal2nix and haskellPackages in nixpkgs | Current Docs: https://haskell4nix.readthedocs.io/".22:56:19

Show newer messages


Back to Room ListRoom Version: 6