!RbXGJhHMsnQcNIDFWN:nixos.org

Haskell in Nixpkgs/NixOS

727 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.org146 Servers

Load older messages


SenderMessageTime
25 May 2021
@cdepillabout:matrix.orgcdepillabout sterni (he/him): maralorn Thanks! 11:21:19
@cdepillabout:matrix.orgcdepillabout
In reply to @maralorn:maralorn.de
I don‘t get it. github has bumped this PR now twice into my notifications, since I merged it. But everytime I go there I don‘t see that anything has happened. https://github.com/NixOS/cabal2nix/pull/495
Yeah, I got that as well. I wonder why it is happening.
11:22:35
@maralorn:maralorn.demaralornI am by the way not 100% satisfied with the result of that PR but I decided that I will not under any circumstances piss off someone who contributes docs.^^11:30:38
@cdepillabout:matrix.orgcdepillaboutYeah, that is completely understandable.11:31:35
@maralorn:maralorn.demaralornI really think that there could be gained a lot by collecting all the various blog posts people created about setting up their Haskell projects with nix and distilling the best practices in our documentation.11:32:54
@maralorn:maralorn.demaralornIt’s so crazy how often I come by some random config by someone and am like "wow, that’s a nice twist to improve your config that I hadn’t seen before".11:33:46
@cdepillabout:matrix.orgcdepillaboutI agree. The Haskell infrastructure is quite difficult to document though, given how many different ways you can use it.11:34:48
@cdepillabout:matrix.orgcdepillaboutSometimes I think about trying to write the "canonical" documentation, but I always give up after considering the scope.11:35:17
@maralorn:maralorn.demaralorn cdepillabout: I think it would be very hard to do it from scratch. But I feel like it should be possible to take what we have and iterate on it. 11:35:50
@maralorn:maralorn.demaralornSomething like we probably can‘t do good, but we certainly can do better.^^11:36:25
@cdepillabout:matrix.orgcdepillaboutThat's a good point11:37:38
@maralorn:maralorn.demaralorn sterni (he/him): Now that I think about it. Don‘t you think it’s kinda lame to compile static lens and random. I mean who needs a static compiled library.^^ Wouldn‘t it be much more awesome to statically compile some tools which people could actually use. e.g. ghcup. 12:08:24
@maralorn:maralorn.demaralornHuh, I wonder if you use pkgsStatic on something with justStaticExecutables do you get a store path with a trivial closure?12:09:41
@quaestor:tchncs.deChristoph joined the room.15:00:51
@zwro:matrix.orgzwro changed their display name from zwro to zero.15:23:22
@zwro:matrix.orgzwro changed their display name from zero to z.15:23:54
@sternenseemann:systemli.orgsterni (he/him) maralorn: justStaticExecutables are already pretty good with dynamic linking since all haskell dependencies are linked statically anyways, dynamic linking is only used for libc etc. 15:35:38
@sternenseemann:systemli.orgsterni (he/him) maralorn: Yeah of course, feel free to add some tools as well. The intention was really to test some very important libraries 15:36:04
@sternenseemann:systemli.orgsterni (he/him)we might want to add hpack, cabal2nix, … to the list15:36:14
@maralorn:maralorn.demaralorn
In reply to @sternenseemann:systemli.org
maralorn: justStaticExecutables are already pretty good with dynamic linking since all haskell dependencies are linked statically anyways, dynamic linking is only used for libc etc.
Yeah, I know. That's why I was hoping that those derivations would actually be completely runtime dependency less.
15:39:37
@sternenseemann:systemli.orgsterni (he/him)pkgsStatic would be yes15:39:59
@maralorn:maralorn.demaralornAnd I mean not only philosophically or the binary. But the actual nix closure of the output.15:40:18
@sternenseemann:systemli.orgsterni (he/him)yeah the closure is one path for pkgsStatic15:41:05
@sternenseemann:systemli.orgsterni (he/him)at least in normal cases15:41:10
@sternenseemann:systemli.orgsterni (he/him)or at least it should :p15:41:19
@sternenseemann:systemli.orgsterni (he/him)but honestly it's not that interesting unless you are copying closures around a lot which are all built with different versions of stdenv15:41:53
@maralorn:maralorn.demaralornCool15:41:54
@sternenseemann:systemli.orgsterni (he/him)normally you have libc etc. in store anyways15:42:10
@maralorn:maralorn.demaralornTrue15:42:20
@sternenseemann:systemli.orgsterni (he/him)Inviting everyone with restart-jobs to hunt for stale builds :) https://github.com/NixOS/nixpkgs/pull/123682#issuecomment-84797529815:42:50

Show newer messages


Back to Room ListRoom Version: 6