summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorMoritz Böhme <mail@moritzboeh.me>2022-01-25 11:47:16 +0100
committerMoritz Böhme <mail@moritzboeh.me>2022-10-25 19:37:48 +0200
commit8e0f5bf1256e1485ea9f1d2ed81ad1059c21f2e0 (patch)
treececf1b0fdfbff64d5bb90bc3c0a35c8207d3b383 /README.md
parentc923e7af73a91970d2e63e03babbca9cc0817551 (diff)
feat: Add flake.nix for nix users
Co-authored-by: Winter <winter@winter.cafe>
Diffstat (limited to 'README.md')
-rw-r--r--README.md13
1 files changed, 13 insertions, 0 deletions
diff --git a/README.md b/README.md
index 9b619d6..29f3e5d 100644
--- a/README.md
+++ b/README.md
@@ -28,6 +28,19 @@ curl -L https://raw.githubusercontent.com/rust-lang/rustlings/main/install.sh |
This will install Rustlings and give you access to the `rustlings` command. Run it to get started!
+### Nix
+Basically: Clone the repository at the latest tag, finally run `nix develop` or `nix-shell`.
+
+```bash
+# find out the latest version at https://github.com/rust-lang/rustlings/releases/latest (on edit 5.2.1)
+git clone -b 5.2.1 --depth 1 https://github.com/rust-lang/rustlings
+cd rustlings
+# if nix version > 2.3
+nix develop
+# if nix version <= 2.3
+nix-shell
+```
+
## Windows
In PowerShell (Run as Administrator), set `ExecutionPolicy` to `RemoteSigned`: