-
Notifications
You must be signed in to change notification settings - Fork 8
/
shell.nix
46 lines (42 loc) · 919 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
{ pkgs ? import <nixpkgs> {
overlays = [
(import "${fetchTarball "https://github.com/nix-community/fenix/archive/main.tar.gz"}/overlay.nix")
];
}
}:
pkgs.mkShell {
nativeBuildInputs = with pkgs; [
(fenix.complete.withComponents [
"cargo" "rustc" "rustfmt" "rust-analyzer"
])
gcc
];
buildInputs = with pkgs; [
rustfmt
wayland
xlibsWrapper
xorg.libXcursor
xorg.libXrandr
xorg.libXi
xorg.libX11
xorg.libX11.out
xorg.libX11.dev.out
vulkan-tools
vulkan-headers
vulkan-loader
vulkan-validation-layers
libxkbcommon.dev
udev.dev
alsa-lib.dev
pkg-config
];
RUST_SRC_PATH = "${pkgs.rust.packages.stable.rustPlatform.rustLibSrc}";
LD_LIBRARY_PATH = pkgs.lib.makeLibraryPath (with pkgs; [
xorg.libX11
xorg.libXcursor
xorg.libXrandr
xorg.libXi
vulkan-loader
]);
RUST_BACKTRACE = 1;
}