!RbXGJhHMsnQcNIDFWN:nixos.org

Haskell in Nixpkgs/NixOS

755 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.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
@sternenseemann:systemli.orgsterni (he/him)I'm not up for touching Language.Nix.PrettyPrinting again though :p14:28:26
@sternenseemann:systemli.orgsterni (he/him)it's a really oddly designed API and although it's supposedly internal it is used in cabal2nix everywhere so I wasn't able to break it :(14:28:50
@sternenseemann:systemli.orgsterni (he/him) my dream scenario currently btw would be cabal2nix, distribution-nixpkgs and language-nix in one cabal workspace plus jailbreak-cabal transferred to the NixOS org 14:30:24
@sternenseemann:systemli.orgsterni (he/him)also the ability to release new versions :D14:30:34
@maralorn:maralorn.demaralornOpen an issue asking for transfer and the hackage rights.14:33:49
@sternenseemann:systemli.orgsterni (he/him)yeah putting that on my list :)14:34:06
@cdepillabout:matrix.orgcdepillabout
In reply to @sternenseemann:systemli.org
in other news: https://github.com/peti/distribution-nixpkgs/pull/11
You might want to add the motivation for this change in a comment so that peti understands it is a good change.
14:47:54
@sternenseemann:systemli.orgsterni (he/him)Uh yeah14:48:11
@sternenseemann:systemli.orgsterni (he/him)gonna do that later and I'm gonna fix the CI finally14:48:20
@sternenseemann:systemli.orgsterni (he/him)I think I don't want to get the nix-instantiate call working inside haskell-ci that is much too much hassle 14:48:39
@cdepillabout:matrix.orgcdepillaboutOr just get peti to transfer the repo to NixOS. I'd be surprised if he wanted to continue maintaining that library if he has basically stepped down from NixOS stuff.14:48:42
@sternenseemann:systemli.orgsterni (he/him)yeah I think it is just a matter of nudging14:48:58
@sternenseemann:systemli.orgsterni (he/him)I think transferring is the right call since it's the least work for him14:49:20
@sternenseemann:systemli.orgsterni (he/him)having all the cabal2nix related stuff in a monorepo-ish thing would be nice14:49:31
@sternenseemann:systemli.orgsterni (he/him)but you can have a local workspace group as well probably14:49:40
@cdepillabout:matrix.orgcdepillaboutAh, yeah, having that stuff in a monorepo would be nice14:50:06
@cdepillabout:matrix.orgcdepillabout
In reply to @cdepillabout:matrix.org
You might want to add the motivation for this change in a comment so that peti understands it is a good change.
Oh, I guess just linking to https://github.com/NixOS/cabal2nix/issues/499 would probably work.
14:52:50
@maralorn:maralorn.demaralorn sterni (he/him): What did you change with your force push? https://github.com/NixOS/nixpkgs/pull/125798 the commit message still says "haskell-packages" instead of "hackage-packages" 14:59:32
@sternenseemann:systemli.orgsterni (he/him)ohh that's what you meant14:59:48

Show newer messages


Back to Room ListRoom Version: 6