!RbXGJhHMsnQcNIDFWN:nixos.org

Haskell in Nixpkgs/NixOS

718 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
5 Jun 2021
@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
@maralorn:maralorn.demaralornWell I think currently haskell.nix and nixpkgs use different ghcs. that makes them super incompatible. I think the desirable goal of unification would be, that users could use nixpkgs to build their packages with a cabal build plan which reuses all derivations which match that are currently in nixpkgs.13:41:58
@maralorn:maralorn.demaralornI am not even convinced that it would be very hard to do that with cabal2nix.13:43:34
@toonn:matrix.orgtoonn You can use whatever GHC with haskell.nix (within limits). I assume Nixpkgs would build their own. 13:43:42
@sternenseemann:systemli.orgsterni (he/him) toonn: that pr is only in nixUnstable, is it? 13:43:52
@maralorn:maralorn.demaralorn sterni (he/him): Surely 13:44:00
@toonn:matrix.orgtoonn Yeah. 13:44:02
@sternenseemann:systemli.orgsterni (he/him)ah yeah13:44:07
@sternenseemann:systemli.orgsterni (he/him)so it doesn't exist13:44:13
@ic.rbow:matrix.orgic.rbow joined the room.13:46:19
@sternenseemann:systemli.orgsterni (he/him)I really hate that apparently everything I want to do to hackagen2ix means touching distribution-nixpkgs nowadays14:20:31
@sternenseemann:systemli.orgsterni (he/him)in other news: https://github.com/peti/distribution-nixpkgs/pull/1114:20:34
@sternenseemann:systemli.orgsterni (he/him)(also need to fix CI)14:20:40
@maralorn:maralorn.demaralorn sterni (he/him): Can you remind me again why this use of with could be harmful? 14:22:03

There are no newer messages yet.


Back to Room ListRoom Version: 6