summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorliv <mokou@fastmail.com>2022-11-12 16:44:10 +0100
committerGitHub <noreply@github.com>2022-11-12 16:44:10 +0100
commitd3f81b6e4018952586c42e71d779d493a2d28862 (patch)
tree86da442012facc2b836c88a33ce31219a1d51f2f /README.md
parent2e1630c712892f83cb1cc3adfb034f9e358e7a5e (diff)
parent8e0f5bf1256e1485ea9f1d2ed81ad1059c21f2e0 (diff)
Merge pull request #922 from MoritzBoehme/feat/add-nix-flake
feat: Add flake.nix for nix users
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 4e0bbf0..38972a4 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`: