From b71e024a8ecd93a5ff1db38db68010af9775c679 Mon Sep 17 00:00:00 2001 From: LLLL Colonq Date: Tue, 6 Oct 2026 21:31:19 -0400 Subject: Add texture sharing --- flake.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'flake.nix') diff --git a/flake.nix b/flake.nix index 67474e2..34e0527 100644 --- a/flake.nix +++ b/flake.nix @@ -200,19 +200,22 @@ }); }; - shell = craneLib.devShell { + baseShell = craneLib.devShell { packages = [ pkgs.trunk pkgs.rust-analyzer pkgs.cargo-flamegraph pkgs.cmake pkgs.mold - ] ++ native.nativeBuildInputs ++ native.buildInputs; + ]; LIBRARY_PATH = "$LIBRARY_PATH:${pkgs.lib.makeLibraryPath native.buildInputs}"; RUSTFLAGS="-L ${glfw}/lib"; LD_LIBRARY_PATH = "$LD_LIBRARY_PATH:${pkgs.lib.makeLibraryPath native.buildInputs}"; inherit LIBCOLONQ_PIT_NATIVE LIBCOLONQ_PIT_WASM; }; + shell = baseShell.overrideAttrs (final: prev: { + buildInputs = prev.buildInputs ++ native.nativeBuildInputs ++ native.buildInputs; + }); in { inherit shell native wasm windows; devShells.${system} = { -- cgit v1.3.1