!avYyleMexqjFHoqrME:nixos.org

Nix Documentation

403 Members
Discussion about documentation improvements around the Nix ecosystem82 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
10 Apr 2024
@infinisil:matrix.orginfinisil I won't be in the docs team meeting tomorrow (cc fricklerhandwerk) 21:00:39
11 Apr 2024
@technicus:matrix.orgMiles Dyson
In reply to @fractivore:cyberia.club
Like, about the definitions of those terms?
Yes, specifically immutability. I said that I am still new to Nix and only have a vague idea, but I would look into it more and at our next gathering include an explanation in my presentation.
00:15:51
@fractivore:cyberia.club@fractivore:cyberia.club
In reply to @technicus:matrix.org
Yes, specifically immutability. I said that I am still new to Nix and only have a vague idea, but I would look into it more and at our next gathering include an explanation in my presentation.
Hmm, searching around for basic explanations on this, there aren't a lot of great options. So I think it's something that could be better introduced in learning resources geared towards beginners and outsiders who might be considering NixOS.
01:34:48
@fractivore:cyberia.club@fractivore:cyberia.club"Immutable" is a property of data. It means the data can't be modified after it's first created. Rather than write a lengthy post here, I'll put something on the wiki that I can link you to.01:37:46
@fractivore:cyberia.club@fractivore:cyberia.clubHere: https://wiki.nixos.org/wiki/FAQ#What_does_it_mean_to_say_that_NixOS_is_%22immutable%22?01:56:50
@fractivore:cyberia.club@fractivore:cyberia.club * Here: https://wiki.nixos.org/wiki/FAQ#What_does_it_mean_to_say_that_NixOS_is_%22immutable%22 01:58:02
@pxc:matrix.orgpxc joined the room.18:11:47
@andi:kack.itandi- left the room.19:52:14
@olafklingt:matrix.org@olafklingt:matrix.orgWhen i make a pr on a file i am the codeowner. Do you still get notifications to review the pr? (#940)21:40:01
@anthonyrsl:matrix.orgAnthony Rsl set a profile picture.21:59:13
@fricklerhandwerk:matrix.orgfricklerhandwerk
In reply to @olafklingt:matrix.org
When i make a pr on a file i am the codeowner. Do you still get notifications to review the pr? (#940)
No, but I saw the PR and it’s in my queue. The article is quite long now. Do you think it makes sense to split it up? If so, we can also do it afterwards
22:08:17
@anthonyrsl:matrix.orgAnthony Rsl removed their profile picture.22:12:49
@olafklingt:matrix.org@olafklingt:matrix.org
In reply to @fricklerhandwerk:matrix.org
No, but I saw the PR and it’s in my queue. The article is quite long now. Do you think it makes sense to split it up? If so, we can also do it afterwards
I don't really see a point where splitting would make sense. - the Wayland part is debatable if it is necessary ... but i think it is good because it points at qemu pitfalls.
22:17:00
12 Apr 2024
@wamirez:matrix.orgwamirez
In reply to@infinisil:matrix.org
wamirez: I think you might have gotten update emails in the past, could you check that you don't anymore? ^
I did get an update. I was sifting through and deleting some emails before getting here so I can't say for sure when, but maybe it was this Monday. Let me know if I can do anything to sort that out!
17:28:08
@terru:raccoon.college@terru:raccoon.college

hey all, i recently got it into my head to write a little tool which automatically edits nix files without messing them up, and got it to a point where it can remove e.g. all mentions of lib.mdDoc from nixpkgs. I have a changeset of it applied to master or ~an hour ago here: https://github.com/NixOS/nixpkgs/compare/5d401f9ed627a869fd231f63e4f8380022dcded5...stuebinm:nixpkgs:remove-mdDoc

i have not opened a pull request with it because that'd just ping a lot of people and i'm not sure if it would be accepted or people here would even be interested, so I thought I'd ask here beforehand

18:54:15
@terru:raccoon.college@terru:raccoon.college *

hey all, i recently got it into my head to write a little tool which automatically edits nix files without messing them up, and got it to a point where it can remove e.g. all mentions of lib.mdDoc from nixpkgs. I have a changeset of it applied to master or ~an hour ago here: https://github.com/NixOS/nixpkgs/compare/5d401f9ed627a869fd231f63e4f8380022dcded5...stuebinm:nixpkgs:remove-mdDoc

i have not opened a pull request with it because that'd just ping a lot of people and i'm not sure if it would be accepted or people here would even be interested, so I thought I'd ask here beforehand

18:57:21
@terru:raccoon.college@terru:raccoon.college(the manual built afterwards & is identical to the manual before the change; i haven't done documentation work on nixpkgs before and am a little unsure how to do further testing/qa on this)19:18:45
@me:indeednotjames.com@me:indeednotjames.com joined the room.19:21:51
@fricklerhandwerk:matrix.orgfricklerhandwerk

Nice! I think we should not just rip out the mdDoc definition but rather throw with an informative error message for another release.

infinisil, guardian of architectural sanity, please give your blessing.

20:12:40
@terru:raccoon.college@terru:raccoon.collegefair ennough (should it be an outright error or just a trace for now?). if nothing else comes up i'd open a PR with this built on then-current master sometime tomorrow21:09:05
@terru:raccoon.college@terru:raccoon.college* fair enough (should it be an outright error or just a trace for now?). if nothing else comes up i'd open a PR with this built on then-current master sometime tomorrow21:09:17
13 Apr 2024
@djacu:matrix.orgdjacu

Hey all

I could use some help with understanding how NRD works and how to document library files properly.

For reference, I am working on this PR that adds network functions to the nixpkgs library.
https://github.com/NixOS/nixpkgs/pull/299409

The manual is failing to build and when I try to build it locally I see this:

RuntimeError: failed to render manual manual.md
error:
        failed to render manual manual.md

caused by:
        rendering lib.md

caused by:
        rendering functions.md

caused by:
        rendering functions/library.md

caused by:
        rendering /nix/store/b94j5fg7rf3m7w6s76by60jd7hb1avry-nixpkgs-lib-docs/network.md

caused by:
bad local reference, id #function-library-lib.network.ipv4.fromCidrString not known

which i've determine to be caused by this line in the default.nix doc comment

  - [`lib.network.ipv4.fromCidrString`](#function-library-lib.network.ipv4.fromCidrString):

This makes sense that it can't find it because if I remove the line, it does build, but there is no documentation for the functions I have created in the manual.

Any advice?

04:10:04
@djacu:matrix.orgdjacu

okay more info I found out.

If i change the reference from

#function-library-lib.network.ipv4.fromCidrString

to

#function-library-lib.network.ipv4

it builds and renders fine

but ipv4 is just a namespace for all my functions inside of the network library. Can we not access functions inside of an attrset or do I need to write things differently so it works?

04:16:10
@tomberek:matrix.orgtomberekNot sure if that much nesting is ok: https://github.com/NixOS/nixpkgs/blob/master/doc/doc-support/lib-function-locations.nix#L25-L3104:16:49
@tomberek:matrix.orgtomberekIf I remove the "ipv4" layer of nesting and adjust the reference, it builds okay. So it seems like the doc infra doesn't allow that much?04:18:49
@djacu:matrix.orgdjacu Well that is unfortunate. Thanks for verifying my results tomberek 04:24:09
@olafklingt:matrix.org@olafklingt:matrix.orgis your use of doc comment inentional? Starting with "/**"? https://github.com/nix-community/nixdoc10:48:13

Show newer messages


Back to Room ListRoom Version: 6