!RbXGJhHMsnQcNIDFWN:nixos.org

Haskell in Nixpkgs/NixOS

722 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
21 May 2025
@maralorn:maralorn.demaralornI would but it in our section in the manual. Or the hacking.md or another similar file …18:21:49
@emilazy:matrix.orgemilymanual section is good18:22:36
@emilazy:matrix.orgemilysince it's relevant to users18:22:49
@maralorn:maralorn.demaralornAlso, which is the correct branch to PR to to add something to the 2505 release notes, right now?18:23:40
@maralorn:maralorn.demaralornrelease-25.05?18:24:37
@emilazy:matrix.orgemily master 18:28:16
@emilazy:matrix.orgemilyand backport it18:28:17
@emilazy:matrix.orgemilyotherwise it gets inconsistent across branches18:28:20
23 May 2025
@thetaoofsu:matrix.orgTheTaoOfSu joined the room.13:41:38
@thetaoofsu:matrix.orgTheTaoOfSu What's up with not being able to use ghcup due a broken package it doesn't depend on? I'm trying to nix-shell -p haskellPackages.ghcup, and it's refusing because haskus-utils-variant-3.5 is marked broken, but... I can't find a connection. 17:12:20
@maralorn:maralorn.demaralornghcup is unmaintained on nixos because there is no working binary distribution of ghc for nixos.17:13:10
@maralorn:maralorn.demaralornThe problem is that nixos has no predictable path for system libraries to link against and there are is no completely statically linked build of ghc.17:14:28
@thetaoofsu:matrix.orgTheTaoOfSuYeah, that'd make sense. Oh well, I guess it shouldn't matter a ton for me anyway17:15:38
@thetaoofsu:matrix.orgTheTaoOfSu ...how on earth does Stack install through nix-shell and then throw a nix error when I try to run it? 19:25:08
@thetaoofsu:matrix.orgTheTaoOfSuAnd it's complaining about not having ghc984, which isn't even in 24.11, that's cool19:25:27
@maralorn:maralorn.demaralornIf you installed stack trough your nix-shell you should disable the nix integration in stack.20:08:40
@thetaoofsu:matrix.orgTheTaoOfSuHow does stack expect to do nix integration while not being installed through nix?20:09:14
@thetaoofsu:matrix.orgTheTaoOfSuI guess some people could be using it in other distros20:09:23
@thetaoofsu:matrix.orgTheTaoOfSuBut either way, I did it the way described in the NixOS wiki page on Haskell. I would think that, at least, would work properly without config. It certainly doesn't mention any there20:10:28
@maralorn:maralorn.demaralornI don’t think that’s impossible … But the nix-integration is not something which nixos or nixpkgs injects into stack. Instead that is just a feature built into stack.20:10:34
@thetaoofsu:matrix.orgTheTaoOfSuOh, no, I take it back, here's a warning about it, I think20:10:47
@thetaoofsu:matrix.orgTheTaoOfSuYeah, it's because I'm using stable channels instead of unstable20:11:23
@thetaoofsu:matrix.orgTheTaoOfSu They say to control it through stack.yaml, but one of the commands that's broken by it is stack new, so I'll have to write a starter myself 20:12:25
@maralorn:maralorn.demaralornPhew20:12:44
@winston:winston.shwinston did you see https://docs.haskellstack.org/en/stable/topics/nix_integration/#supporting-both-nix-and-non-nix-developers ? 20:15:38
@winston:winston.shwinstonI remember using that template when I used stack, found it useful back then20:15:54
@winston:winston.shwinstonthey wrap stack so it doesn't use Nix without having to specify disabling the integration in the stack yaml20:16:10
@thetaoofsu:matrix.orgTheTaoOfSuOh that looks useful, thank you20:16:11
24 May 2025
@qyliss:fairydust.spaceAlyssa Ross joined the room.12:23:19
@qyliss:fairydust.spaceAlyssa Ross Are any of the dontChecks in configuration-8.6.x.nix still necessary, given that AFAICT the only set that uses it is ghc865Binary, which never enables checks anyway? 12:24:17

Show newer messages


Back to Room ListRoom Version: 6