-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Drop explanations on "classical" nix? #19
Comments
Yes, but creating a flake.nix and related construction is also very distracting from trying to teach the objective. It would be.... ~10 lines of flake.nix to just replace |
Right, but on the flip side, Eelco, at least, wants to stabalize flakes fairly soon, so I think it would help immensely to simply just target flakes as the "blessed" path |
I agree?
I could add another "flakes primer" in which we create an example flake.nix. I would just like to keep the "prerequisites" to a minimum. Assuming content from another section also has a cognitive cost for learning, and I don't want it to quickly overwhelm the reader. |
Part of me also feels like the usage of After the "build a Nix package" section, we can introduce flakes, and the code examples can transition into make that code flakified. |
we could, alternatively, also just provide a bunch of flake templates in this repository so users can just run instead of It might be a more natural transition from explicit pinning to flakes anyway, since its just, "oh okay, so the flake is just doing the pinning for me under the hood." We are obviously gonna have to explain the NIX_PATH either way, but I would like do so in a context where it's already been firmly established that using it defeats a lot of the purpose of why one would want to use nix in the first place. I tried to offer some explanation of this already elsewhere: Though I haven't worked on that repo since I initially started it. edit |
Fair, but I'm not opposed to hand waving and just saying, "don't worry about this for now". Nix requires you to bite off a lot |
I know that @manveru has a habit of defining simple scripts with |
Today as I was grepping through the nix commit log I just so happen to come across this little gem as well: This might allow us to explain the NIX_PATH while still writing code samples that are reproducible |
Hm, wouldn't then |
Yea, I guess that's pretty similar to |
Both require |
Yea, but it's more likely to "stand the test of time". As |
A couple of code examples make use of classical nix, such as
import <nixpkgs>
.Since it's already hard to teach nix, it's probably even harder to teach a mixed syntax.
Don't have a strong opinion, this just jumped to my eyes, while flying over the text.
The text was updated successfully, but these errors were encountered: