!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
@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
@maralorn:maralorn.demaralorn * sterni (he/him): Can you remind me again why this use of with could be harmful? 14:22:21
@maralorn:maralorn.demaralornIt will break when I finally upload my sternenseemann library to hackage?14:22:59
@sternenseemann:systemli.orgsterni (he/him)exactly14:23:05
@sternenseemann:systemli.orgsterni (he/him)it's not urgent but nice to have fixed tbh14:23:25
@sternenseemann:systemli.orgsterni (he/him)
14:24:27
@sternenseemann:systemli.orgsterni (he/him) *
nix-repl> lib.intersectLists (builtins.attrNames lib.maintainers) (builtins.attrNames haskellPackages) 
[ "astro" "buffet" "cap" "cpu" "disassembler" "rob" "yarr" ]
14:24:33
@maralorn:maralorn.demaralorn Have you considered replacing [ lib.maintainers.a lib.maintainers.b ] with builtins.attrValues { inherit (lib.maintainers) a b; }? 14:24:40
@sternenseemann:systemli.orgsterni (he/him)there's your motivation :)14:24:41
@maralorn:maralorn.demaralornI now cap, I doubt they will ever maintain a Haskell package.^^14:25:15
@sternenseemann:systemli.orgsterni (he/him)
In reply to @maralorn:maralorn.de
Have you considered replacing [ lib.maintainers.a lib.maintainers.b ] with builtins.attrValues { inherit (lib.maintainers) a b; }?
more hassle to implement plus extra evaluation cause which is not negliable I think
14:25:16
@maralorn:maralorn.demaralorn
In reply to @sternenseemann:systemli.org
more hassle to implement plus extra evaluation cause which is not negliable I think
We can increase the hassle by only doing it, when it’s more than one maintainer.
14:26:02
@maralorn:maralorn.demaralornI think that way it would be pretty cheap too.14:26:17

Show newer messages


Back to Room ListRoom Version: 6