summaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
authorLLLL Colonq <llll@colonq>2026-10-06 21:31:19 -0400
committerLLLL Colonq <llll@colonq>2026-10-06 21:31:19 -0400
commitb71e024a8ecd93a5ff1db38db68010af9775c679 (patch)
tree40f28724902e0deed7b29eda53e8a5319a816720 /flake.nix
parent0bfb852f7a2784938f1b9724bc46d98bb5257f86 (diff)
Add texture sharing
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix7
1 files changed, 5 insertions, 2 deletions
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} = {