diff options
| author | liv <mokou@fastmail.com> | 2022-11-12 16:44:10 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-11-12 16:44:10 +0100 |
| commit | d3f81b6e4018952586c42e71d779d493a2d28862 (patch) | |
| tree | 86da442012facc2b836c88a33ce31219a1d51f2f /README.md | |
| parent | 2e1630c712892f83cb1cc3adfb034f9e358e7a5e (diff) | |
| parent | 8e0f5bf1256e1485ea9f1d2ed81ad1059c21f2e0 (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.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`: |
