Skip to content
This repository was archived by the owner on Jan 31, 2023. It is now read-only.

Commit f213881

Browse files
authored
Merge pull request #40 from ThibaultLemaire/build-with-nix
Build with nix
2 parents b578013 + deb8eed commit f213881

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,18 @@ https://bokuweb.github.io/rustynes/
1919
- wasm-gc
2020
- SDL2
2121

22+
### Using [Nix]
23+
24+
If you have the [Nix] package manager installed, you can alternatively run a nix shell with the necessary requirements automatically brought in scope:
25+
26+
``` sh
27+
nix-shell
28+
```
29+
30+
In that shell, you can then simply run the following commands.
31+
32+
[Nix]: https://nixos.org/nix/
33+
2234
## Development
2335

2436
### webAssembly

shell.nix

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{ pkgs ? import <nixpkgs> {} }:
2+
3+
with pkgs;
4+
mkShell {
5+
buildInputs = [
6+
emscripten
7+
nodejs
8+
rustup
9+
SDL2
10+
];
11+
}

0 commit comments

Comments
 (0)