-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathshell.nix
47 lines (44 loc) · 986 Bytes
/
shell.nix
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
43
44
45
46
47
{
pkgs ? import <nixpkgs> {
overlays = [(import (builtins.fetchTarball "https://github.com/oxalica/rust-overlay/archive/master.tar.gz"))];
}
}:
pkgs.mkShell rec {
packages = with pkgs; [
cmake
(rust-bin.stable.latest.default.override {
extensions = [ "rust-src" "rust-analysis" ];
targets = [ "wasm32-unknown-unknown" ];
})
llvmPackages.bintools
rustPlatform.rustLibSrc
rust-analyzer
cargo-watch
rustfmt
pkg-config
udev
alsaLib
libao
openal
libpulseaudio
fontconfig
libxkbcommon
xorg.libX11
xorg.libXcursor
xorg.libXrandr
xorg.libXi
vulkan-loader
vulkan-tools
libGL
bzip2
nodejs
wasm-pack
openssl
SDL2
SDL2_ttf
];
# Allows rust-analyzer to find the rust source
RUST_SRC_PATH = "${pkgs.rustPlatform.rustLibSrc}";
# Without this graphical frontends can't find the GPU adapters
LD_LIBRARY_PATH = "${pkgs.lib.makeLibraryPath packages}";
}