!tDnwWRNkmmYtMXfaZl:nixos.org

Nix Language

238 Members
Nix programming language54 Servers

Load older messages


SenderMessageTime
19 Oct 2021
@kamadorueda:matrix.orgkamadoruedaI will22:37:17
@domenkozar:matrix.orgDomen Kožarit's really important to keep it simple22:37:34
@domenkozar:matrix.orgDomen Kožarso no assumption of functional programming background, etc22:37:49
@domenkozar:matrix.orgDomen KožarI'd like to put it on nix.dev22:38:34
@domenkozar:matrix.orgDomen Kožar kamadorueda: are you saying you'd like to write the tutorial? 22:52:16
@kamadorueda:matrix.orgkamadoruedaYes, I'm currently organizing a few FOSS projects of mine around a consistent website and code base: https://github.com/on-nix So the tutorial would be learn.on-nix.com22:59:10
@kamadorueda:matrix.orgkamadoruedaAnything is Free, libre and open source, so compiling it for nix.dev would be possible22:59:55
@kamadorueda:matrix.orgkamadorueda*everything23:00:22
@domenkozar:matrix.orgDomen Kožarhmm, do you think it makes sense to have it on two websites?23:01:46
@domenkozar:matrix.orgDomen KožarNot sure what's the goal of on-nix, but nix.dev will at some point have all resources for getting started with Nix23:03:32
@domenkozar:matrix.orgDomen Kožarso language tutorial is an important bit, I'm happy to collaborate but if you'd like to have it on on-nix.com then I'll probably write my own23:03:56
@domenkozar:matrix.orgDomen Kožar * so language tutorial is an important bit, I'm happy to collaborate but if you'd like to have it on on-nix.com then I'll probably write my own23:04:13
@kamadorueda:matrix.orgkamadoruedaI see23:04:51
@kamadorueda:matrix.orgkamadoruedaThen better having it on nix.dev is the right choice23:05:21
@kamadorueda:matrix.orgkamadoruedaSo, in summary, we share the common goal of filling the missing pieces for the community but we also disagree on the place, so I politely retire my intention to write the tutorial for the moment and better focus my free time on python, nixdb and small contributions to nix itself23:08:44
20 Oct 2021
@domenkozar:matrix.orgDomen Kožarmakes sense :)05:01:27
@sternenseemann:systemli.orgsterni
In reply to @domenkozar:matrix.org
what's the most elaborate but simple Nix language tutorial you've seen?
https://github.com/tazjin/nix-1p but not really a tutorial
08:21:23
@domenkozar:matrix.orgDomen KožarOh nice :)11:24:20
@domenkozar:matrix.orgDomen KožarThat's probably the best reference11:24:51
@phaer:matrix.orgphaer joined the room.20:59:18
21 Oct 2021
@phaer:matrix.orgphaerIs there something like Haskells "$" operator or other tricks to avoid too many brackets in nested code?08:47:40
@qyliss:fairydust.spaceAlyssa Rossnope08:57:41
@trofi:matrix.orgtrofi I found let a reasonable way to decrease nesting. 09:04:53
@jez:petrichor.meJez (he/him) let also makes things a bit more self-documenting in some cases 09:09:54
@cdepillabout:matrix.orgcdepillabout
In reply to @phaer:matrix.org
Is there something like Haskells "$" operator or other tricks to avoid too many brackets in nested code?
In nixpkgs there is pipe, although that is a little different from $:
https://github.com/NixOS/nixpkgs/blob/670c69cb9b66491ce3763154740b182c7c89a1c6/lib/trivial.nix#L32-L68
10:17:22
@phaer:matrix.orgphaer cdepillabout: Thanks, i've read about that before but had forgotten about it. That helps :) 10:18:01
@phaer:matrix.orgphaerIf i have an attrset and a nameValuePair, how do i merge them? "//" seems to work with two attrsets only?10:35:59
@qyliss:fairydust.spaceAlyssa Rossattrset // { "${nvp.name}" = nvp.value; }10:36:26
@phaer:matrix.orgphaerah, i was looking for a function in nixpkgs but that should work, thanks for the quick response :)10:37:08
@optimal:kde.orgTheOPtimal joined the room.17:18:11

There are no newer messages yet.


Back to Room List