diff options
| author | Moritz Böhme <mail@moritzboeh.me> | 2022-01-25 11:47:16 +0100 |
|---|---|---|
| committer | Moritz Böhme <mail@moritzboeh.me> | 2022-10-25 19:37:48 +0200 |
| commit | 8e0f5bf1256e1485ea9f1d2ed81ad1059c21f2e0 (patch) | |
| tree | cecf1b0fdfbff64d5bb90bc3c0a35c8207d3b383 /README.md | |
| parent | c923e7af73a91970d2e63e03babbca9cc0817551 (diff) | |
feat: Add flake.nix for nix users
Co-authored-by: Winter <winter@winter.cafe>
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -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`: |
