!RbXGJhHMsnQcNIDFWN:nixos.org

Haskell in Nixpkgs/NixOS

750 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.org150 Servers

Load older messages


SenderMessageTime
5 Jun 2021
@toonn:matrix.orgtoonn I think you're not hearing what I'm saying. The "fix" is just needing a newer version. 13:06:02
@toonn:matrix.orgtoonn And that newer version needs newer versions of other packages. 13:06:12
@cdepillabout:matrix.orgcdepillaboutWe have the newest versions of all Haskell packages in Nixpkgs.13:06:25
@toonn:matrix.orgtoonn Which aren't necessarily compatible with the rest of Stackage. 13:06:26
@cdepillabout:matrix.orgcdepillaboutYeah, and it still great when people send fixes for them.13:06:43
@toonn:matrix.orgtoonn I think maybe you're talking about the current situation? 13:06:58
@toonn:matrix.orgtoonn Back when I used the infra Nixpkgs definitely did not have the latest version of everything. 13:07:15
@toonn:matrix.orgtoonn I didn't know Stackage Nightly even used the latest versions of everything? 13:07:54
@toonn:matrix.orgtoonn That sounds like you'd be completely giving up the Stackage guarantee? 13:08:05
@toonn:matrix.orgtoonn What's even the point of using Stackage then? 13:08:16
@maralorn:maralorn.demaralorn I think toonn is right, when it’s about wanting a newer version of a stackage package. But then otoh that would be worse when using stackage. When we are talking about a package outside of stackage. We nearly always have the newest and we only pin it to an older version because of stackage in very rare cases. 13:08:21
@cdepillabout:matrix.orgcdepillaboutHuh, maybe that was before my time. As far as I've been using it, Nixpkgs has always had the latest versions of all Haskell packages. Some of them don't work, like you're saying, but we still like getting fixes for them.13:08:21
@maralorn:maralorn.demaralorn cdepillabout: We are not using the latest version for stackage packages. We include it, but we don‘t guarantee it’s building in any way. 13:09:31
@cdepillabout:matrix.orgcdepillabout toonn: Ah, maybe we're talking past each other. So Nixpkgs often has two versions of each Haskell package. It has something like foobar pinned to the version of the foobar package in Stackage, and then foobar_1_2_3_4 for the latest version of the foobar package on Hackage (assuming it is version 1.2.3.4). 13:09:47
@maralorn:maralorn.demaralornAgain if you often need a newer ghc or a package newer than in stackage I agree that haskell.nix would probably be less pain.13:11:01
@cdepillabout:matrix.orgcdepillabout maralorn: Yeah, but it is still great to get fixes for those packages though, specifically because we don't really guarantee they are working. 13:11:28
@maralorn:maralorn.demaralornGranted. I just have the feeling that at this point so few people are doing that, that going down this road means probably a lot of work.13:12:24
@maralorn:maralorn.demaralornI‘d still do it that way. But I understand that people don‘t always want to become nixpkgs maintainers.^^13:12:57
@cdepillabout:matrix.orgcdepillaboutYeah, that's a good point. I guess it depends on how far your dependencies are from stackage. Although I think you have a good point with haskell.nix. If you're happy with cabal's solver or stackage snapshots, it is a good choice.13:13:57
@maralorn:maralorn.demaralornotoh you recompile a lot when you do that …13:14:22
@toonn:matrix.orgtoonn Yes, but at least it's incremental with cabal and stack too probably. 13:15:09
@maralorn:maralorn.demaralornStill on the other at least from my vantage point crazy cool super shiny major improvements to stackage packages which don‘t quickly get into stackage are not that often.13:15:26
@cdepillabout:matrix.orgcdepillaboutAh, yeah, I wouldn't want to use haskell.nix unless I also used their cache.13:16:37
@maralorn:maralorn.demaralornIf you rely on cabal build plans I feel like you can quickly get cache misses.13:17:05
@maralorn:maralorn.demaralornStill on the other hand, traditional cabal users always recompile all their deps and that’s not a big issue …13:17:35
@cdepillabout:matrix.orgcdepillaboutYeah, I could definitely see that happening. At least you hopefully won't have to build GHC though13:17:49
@toonn:matrix.orgtoonn Even if you use their cache it's not hard to step off the cliff. 13:18:07
@maralorn:maralorn.demaralornI actually think haskell.nix and cabal2nix have both their strong suits and I don‘t think that there are any philosophical reasons that all of the features could exist in one tool.13:19:24
@toonn:matrix.orgtoonn I've been rebuilding stdenv quite a bit lately. That has mellowed my view on rebuilding GHC a *lot*. Highly recommended if that's something that bothers you : ) >.< 13:19:25
@maralorn:maralorn.demaralornI think providing a way to build a package from a cabal build plan is something that nixpkgs could support.13:20:08

Show newer messages


Back to Room ListRoom Version: 6