This commit is contained in:
Matthew Deville 2026-01-21 22:18:08 +01:00
parent 9788dcbd1b
commit 04054560d1

View file

@ -21,31 +21,31 @@
pkgs = import nixpkgs { inherit system overlays; }; pkgs = import nixpkgs { inherit system overlays; };
stdenv = pkgs.stdenvAdapters.useMoldLinker pkgs.clangStdenv; stdenv = pkgs.stdenvAdapters.useMoldLinker pkgs.clangStdenv;
rustToolchain = pkgs.rust-bin.stable.latest.default; rustToolchain = pkgs.rust-bin.stable.latest.default;
nativeBuildInputs = with pkgs; [ nativeBuildInputs = with pkgs; [
rustToolchain rustToolchain
mold mold
pkg-config pkg-config
clang clang
]; ];
xorgBuildInputs = with pkgs; [ xorgBuildInputs = with pkgs; [
xorg.libX11 xorg.libX11
xorg.libXcursor xorg.libXcursor
xorg.libXi xorg.libXi
xorg.libXrandr xorg.libXrandr
]; ];
waylandBuildInputs = with pkgs; [ waylandBuildInputs = with pkgs; [
libxkbcommon libxkbcommon
wayland wayland
]; ];
# Graphics/rendering libraries needed for wgpu (used by show-image) # Graphics/rendering libraries needed for wgpu (used by show-image)
graphicsBuildInputs = with pkgs; [ graphicsBuildInputs = with pkgs; [
vulkan-loader vulkan-loader
]; ];
buildInputs = xorgBuildInputs ++ waylandBuildInputs ++ graphicsBuildInputs; buildInputs = xorgBuildInputs ++ waylandBuildInputs ++ graphicsBuildInputs;
mkShell = pkgs.mkShell.override { mkShell = pkgs.mkShell.override {