-
-
Notifications
You must be signed in to change notification settings - Fork 264
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
Nix language primer with shell.nix
#516
Comments
This issue has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/2023-04-13-learning-journey-working-group-meeting-notes-4/27255/1 |
A collection of existing tutorials with notes about what they cover: Posts
Videos
From existing doc survey: TutorialsAd hoc Shell Environments ReferencesComand Reference -> Main Commands -> nix-shell |
This issue has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/2023-04-20-learning-journey-working-group-meeting-notes-5/27460/1 |
I have a The tutorial also does not mention whether |
The agreed-upon tenet at the moment is to only teach using the stable interface, and Flakes are an experimental feature. Other than that, yes, it's equivalent.
|
OK. In his tutorial here Amos focuses heavily on flake: |
@roberth assigned to you for feedback |
I think the guide should still mention this in a warning / note, or at least the kind of issues that comes from not pinning |
Regarding not using flakes, it would be beneficial to make clear in the tutorial which parts of the file are about bring things into scope, and which part is the actual shell expression. As this is "First steps" they're not too familiar with the language yet, so some extra guidance as to what's what will help them transfer this knowledge to a flake context. Furthermore some of these points apply; some context to keep in mind while writing this tutorial |
This issue has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/2023-07-13-learning-journey-working-group-meeting-notes-17/30393/1 |
This issue has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/2023-07-17-tutorial-series-call-for-feedback/30616/1 |
This issue has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/2023-07-27-learning-journey-working-group-meeting-notes-19/31151/1 |
shell.nix
Cleaning out issues and compiling a refreshed overview, I think what we're still missing is a smooth transition between a very superficial look at Nix expressions (e.g. in the context of |
The Learning Journey WG identified that the second tutorial in the learning journey should be a tutorial walking the user through creating a
shell.nix
. This is the tracking issue for discussion on this tutorial and related work.shell.nix
tutorials (@khaled)Tutorial contents
shell.nix
installing Pythonnix-shell -p
you can enter the same environment repeatedly by declaring it in ashell.nix
file.shell.nix
to configure other aspects of the environment:buildInputs
andpackages
shell.nix
will just grab nixpkgs from<nixpkgs>
, leaving pinning, channels, etc to later tutorialsHow
The text was updated successfully, but these errors were encountered: