Nix Documentation | 438 Members | |
| Discussion about documentation improvements around the Nix ecosystem | 91 Servers |
| Sender | Message | Time |
|---|---|---|
| 1 Dec 2023 | ||
In reply to @fricklerhandwerk:matrix.orgCould you clarify what you mean by "syntax patterns"? Also, just to confirm, you're referring to this? https://nixos.org/manual/nix/unstable/language/ | 04:38:06 | |
| 04:49:04 | ||
In reply to @bzzm3r:matrix.org Things like at the top of this document: https://nixos.org/manual/nix/unstable/language/constructs/lookup-path I don't want to call them grammar because we're still far away from actually formalising any of that | 09:04:41 | |
| But grammar rules would be the technical term | 09:04:51 | |
In reply to @ThorHop:matrix.orgPlease do make PRs. Try to make small ones, they're easier to review and get merged quickly. | 09:05:36 | |
In reply to @ThorHop:matrix.org* Please do make PRs. Try to make small ones (both scope and diff), they're easier to review and get merged quickly. | 09:05:58 | |
| 11:08:07 | ||
| 2 Dec 2023 | ||
| 04:30:05 | ||
In reply to @fricklerhandwerk:matrix.orgah cool, so a little BNF like thing | 04:33:51 | |
| this is kinda neat https://landscape.nixlang.wiki/ | 11:33:10 | |
ran nix-shell in nixpkgs/docs/ a while....still compiling 🤣 | 23:13:54 | |
| my guess is that....oh, yeah | 23:14:05 | |
i think i know why. i forgot to set npins up | 23:14:23 | |
No, I don't think that's it. The shell uses the parent nixpkgs repo as its nixpkgs...which causes my system to have to work quite hard, I suppose because build artifacts for master are not yet up on cachix? 🤔 | 23:33:59 | |
| Not entirely clear on that point for now, but I have a workaround. | 23:34:38 | |
| 3 Dec 2023 | ||
| https://github.com/NixOS/nixpkgs/pull/271797 | 01:12:09 | |
| (i'm not actually sure if it's useful, but...nothing lost, i suppose, in seeing if there is interest) | 02:39:12 | |
| 14:08:33 | ||
| 4 Dec 2023 | ||
| 17:42:34 | ||
| 5 Dec 2023 | ||
| 00:38:12 | ||
hey docs team, i'm continuing to dig deep. currently just finished making my own mkShell implementation that isn't "bash focused" ([this SO answer]((per: https://stackoverflow.com/a/71112117/3486684)) partially gave me the hint, but also motivated by wanting to not use direnv) | 05:15:44 | |
| I've been collating various little fixes/clarifications to the stdenv chapter as i did this, so i'll probably PR them all for consideration too | 05:16:25 | |
one question I am left with, ultimately, however is: why env vars? why do we end up storing stuff like builder, shellHook, *Phase as environment variables for shells? | 05:17:04 | |
| why not something less volatile/touchy? for example: files. files in the store? | 05:17:48 | |
* hey docs team, i'm continuing to dig deep. currently just finished making my own mkShell implementation that isn't "bash focused" (this SO answer partially gave me the hint, but also motivated by wanting to not use direnv) | 05:25:09 | |
| if we had a suitable "arithmetic" for "environment variable files", would we be able to replace env vars with such files? such an "arithmetic" i suppose would consist of operations like:
| 05:26:19 | |
| sorry, instead of files, why not store "environment variables" in a nix expression (which i guess is stored in a file) which produces an attribute set, whose attributes are the environment variables in a given attribute? | 05:27:09 | |
| okay, so with depending on the type of the environment variable (perhaps set by the user?) we'd have operations such as:
and these operations would help us "join" environments (attribute sets whose attributes are environment variables)? | 05:33:31 | |
| * okay, so with on the type of the environment variables (perhaps set by the user?) involved we'd have operations such as:
and these operations would help us "join" environments (attribute sets whose attributes are environment variables)? | 05:33:57 | |
| * okay, so with on the type of the environment variables (perhaps set by the user?) involved we'd have operations such as:
and these operations would help us "join" environments (attribute sets whose attributes are environment variables)? | 05:35:33 | |