doc: Add a flake.nix to ease build environment setup#101
doc: Add a flake.nix to ease build environment setup#101ithinuel wants to merge 2 commits intorp-rs:mainfrom
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.
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.
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.
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.
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?
There was a problem hiding this comment.
Yes, I added this command (well the build instead of run) to the GH workflow 👍
|
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. |
|
I see it regularly indeed. I've seen some gh actions that can be used to run flake checks & builds. I'll augment this pr when I get some time! |
This shall hopefully help us catch breakage and future bitrot. At least to let me know of issues so that I can help fixing. Signed-off-by: Wilfried Chauveau <wilfried.chauveau@ithinuel.me>
12481db to
7e7bb47
Compare
No description provided.