-
Notifications
You must be signed in to change notification settings - Fork 0
/
shell.nix
41 lines (40 loc) · 931 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
let
sources = import ./nix/sources.nix;
rust-overlay = import sources.rust-overlay;
pkgs = import sources.nixpkgs { overlays = [ rust-overlay ]; };
rust = pkgs.rust-bin.stable.latest.default.override {
extensions = [ "rust-src" ];
};
in
pkgs.mkShell {
buildInputs = [
pkgs.niv
# rust and profiling
rust
pkgs.cargo-flamegraph
pkgs.lld
pkgs.llvmPackages.bintools
pkgs.tracy
pkgs.renderdoc
# asset authoring
pkgs.blender
pkgs.tiled
pkgs.jq
pkgs.entr
pkgs.just
# wgpu C dependencies
pkgs.pkgconfig
pkgs.xorg.libX11
];
# make C libraries available
LD_LIBRARY_PATH = with pkgs.xorg; with pkgs.lib.strings;
concatStrings (intersperse ":" [
"${libX11}/lib"
"${libXcursor}/lib"
"${libXxf86vm}/lib"
"${libXi}/lib"
"${libXrandr}/lib"
"${pkgs.vulkan-loader}/lib"
"${pkgs.stdenv.cc.cc.lib}/lib64"
]);
}