-
Notifications
You must be signed in to change notification settings - Fork 106
Expand file tree
/
Copy pathshell.nix
More file actions
28 lines (22 loc) · 852 Bytes
/
shell.nix
File metadata and controls
28 lines (22 loc) · 852 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
{ pkgs, rustToolchain, ... }:
with pkgs; mkShell {
# Workaround for https://github.com/NixOS/nixpkgs/issues/60919.
# NOTE(eddyb) needed only in debug mode (warnings about needing optimizations
# turn into errors due to `-Werror`, for at least `spirv-tools-sys`).
hardeningDisable = [ "fortify" ];
# Allow cargo to download crates (even inside `nix-shell --pure`).
SSL_CERT_FILE = "${cacert}/etc/ssl/certs/ca-bundle.crt";
nativeBuildInputs = [ rustToolchain ];
# Runtime dependencies (for the example runners).
LD_LIBRARY_PATH = with pkgs.xorg; lib.makeLibraryPath [
vulkan-loader
# NOTE(eddyb) winit really wants `libxkbcommon` on Wayland for some reason
# (see https://github.com/rust-windowing/winit/issues/1760 for more info).
wayland
libxkbcommon
libX11
libXcursor
libXi
libXrandr
];
}