-
Notifications
You must be signed in to change notification settings - Fork 118
doc: Add a flake.nix to ease build environment setup #101
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
base: main
Are you sure you want to change the base?
Conversation
README.md
Outdated
| <details open="open"> | ||
| <summary><h2 style="display: inline-block" id="installation-of-development-dependencies">Installation of development dependencies</h2></summary> | ||
|
|
||
| If you are using Nix, you can use the `devShell` made available in `flake.nix`. Otherwise, you can follow these commands (provided you already have [`Rustup`](https://rustup.rs/) installed): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can use Nix without running NixOS, but this information and the flake are going to be of no use to me unless I'm running NixOS.
Some clarification of the target audience would be nice - also keeping in mind that a lot of the folks reading this won't know what Nix/NixOS is and if it's something we need them to install.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
but this information and the flake are going to be of no use to me unless I'm running NixOS.
🤔 I’m using nix on MacOS and can use flakes there just fine. What would make NixOS required ?
keeping in mind that a lot of the folks reading this won't know what Nix/NixOS is
Do you think a link on Nix would be good enough? eg:
If you are using Nix, you can use the
devShellmade available in […]
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some sort of breadcrumb to help that a nix newbie like me could follow would be nice, yes. :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so i kinda got it to work, but i'm not sure i did it right?
i installed nix, found i needed to add
extra-experimental-features = flakes nix-command
to ~/.config/nix/nix.conf
and then i could run nix develop --command [insert tool i wanted to run]
like
$ nix develop --command cargo rundoes that sound like how this is intended to be used?
|
I had flake files in my Neotron repo but in the end I had to take them out because I wasn't testing them and they bit-rotted when I updated stuff. |
No description provided.