!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
@maralorn:maralorn.demaralornOf course haskell.nix is backed by a big company. It’s hard for us volunteers to reach feature parity with that. I wish there would have been a way that they could have applied their efforts so that the community can profit even more.13:22:11
@cdepillabout:matrix.orgcdepillaboutYeah, I've thought about that as well. I wonder if there is some way we could somehow merge our Haskell stuff with the haskell.nix infrastructure. I can only imagine it would be a huge amount of work though.13:23:40
@toonn:matrix.orgtoonn Afaict they weren't averse to that. But the Nixpkgs policy on IFD prevents it. 13:24:14
@cdepillabout:matrix.orgcdepillaboutYeah, I imagine they'd have to generate a package set and check it in to Nixpkgs, similarly to how Nixpkgs currently does it.13:29:11
@toonn:matrix.orgtoonn But then you lose the advantage of haskell.nix? 13:29:36
@toonn:matrix.orgtoonn Because the flexibility is the advantage. 13:29:43
@cdepillabout:matrix.orgcdepillaboutI mean, I can totally understand that they just wanted to iterate quickly on their own toolkit rather than trying to get it upstreamed into nixpkgs.13:29:52
@cdepillabout:matrix.orgcdepillaboutI don't think the primary advantage of haskell.nix is IFD. I think it is that you can generate a Haskell package set from the cabal solver or an arbitrary stackage package set.13:30:45
@toonn:matrix.orgtoonn IFD is not an advantage. It's how it works its magic. 13:31:11
@cdepillabout:matrix.orgcdepillaboutNo, you could easily use haskell.nix without relying on IFD. They have all the tooling setup to make it possible.13:31:36
@toonn:matrix.orgtoonn The flexibility in package versions which is the result is the advantage. 13:31:40
@toonn:matrix.orgtoonn Are you talking about pinning? 13:32:04
@toonn:matrix.orgtoonn Uh, materializing. 13:32:14
@cdepillabout:matrix.orgcdepillabout Yeah, I think their documentation calls it materializing. If you wanted to move haskell.nix into nixpkgs, you'd have to generate (materialize?) all the .nix files and check them into nixpkgs. 13:34:04
@cdepillabout:matrix.orgcdepillaboutAh, maybe we're talking about different things. I'm trying to say that it would be possible in theory to use haskell.nix to provide a Haskell package set similar to the one that Nixpkgs provides.13:34:34
@toonn:matrix.orgtoonn Yes, I've wondered whether that's something the Haskell infra could move to. 13:34:41
@toonn:matrix.orgtoonn But the result still has the disadvantages of the current setup. 13:35:06
@toonn:matrix.orgtoonn So it could be an advantage for maintainers but not users? 13:35:25
@cdepillabout:matrix.orgcdepillaboutYeah that is a good point.13:35:50
@toonn:matrix.orgtoonn I'm also not sure how you'd generate the package set tbh. Haskell.nix currently goes by cabal or stack. And neither of those can easily generate a set as big as Nixpkgs includes. 13:36:35
@cdepillabout:matrix.orgcdepillaboutAlthough I'm struggling to imagine how Nixpkgs could provide something as flexible as haskell.nix as long as the restriction on IFD exists. Maybe that is the point you're trying to make?13:36:36
@toonn:matrix.orgtoonn Yes, pretty much. 13:36:53
@cdepillabout:matrix.orgcdepillaboutYeah, haha, that is a good point.13:37:14
@toonn:matrix.orgtoonn Maybe recursive Nix? I'm not sure what the policy on that is but it's been described to me as something that achieves a similar thing. 13:37:51
@sternenseemann:systemli.orgsterni (he/him)recursive nix doesn't exist13:39:08
@sternenseemann:systemli.orgsterni (he/him)it is something that has been proposed since forever but isn't supported currently13:39:24
@sternenseemann:systemli.orgsterni (he/him)https://github.com/NixOS/nix/issues/13#issuecomment-32833903513:39:39
@sternenseemann:systemli.orgsterni (he/him) * https://github.com/NixOS/nix/issues/1313:39:45
@toonn:matrix.orgtoonn Have I been bamboozled? https://github.com/NixOS/nix/pull/3205 13:39:48
@sternenseemann:systemli.orgsterni (he/him)or me :thonking:13:40:59

Show newer messages


Back to Room ListRoom Version: 6