-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathshell.nix
More file actions
42 lines (40 loc) · 907 Bytes
/
shell.nix
File metadata and controls
42 lines (40 loc) · 907 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
{
pkgs ? import <nixpkgs> {
overlays = [
(import (
builtins.fetchTarball {
url = "https://github.com/oxalica/rust-overlay/archive/8d6387ed6d8e6e6672fd3ed4b61b59d44b124d99.tar.gz";
sha256 = "sha256:0kdd7jpbyr1r578yfq95j317sk9dyrw0yxgnkiny2b43f4d6q46z";
}
))
];
},
}:
pkgs.mkShell rec {
packages = with pkgs; [
(rust-bin.stable.latest.default.override {
extensions = [
"rust-src"
"rust-analysis"
"rust-analyzer"
"rustfmt"
"clippy"
];
targets = [ "wasm32-unknown-unknown" ];
})
llvmPackages.bintools
cargo-watch
cargo-outdated
pkg-config
udev
alsa-lib
nodejs
wasm-pack
openssl
SDL2
SDL2_ttf
SDL2_gfx
];
# Without this graphical frontends can't find the GPU adapters
LD_LIBRARY_PATH = "${pkgs.lib.makeLibraryPath packages}";
}