feat: init for macroquad

This commit is contained in:
2026-08-19 12:46:28 +02:00
parent 58de0bede2
commit bf2ec7c4d9
10 changed files with 311 additions and 11 deletions

View File

@@ -16,11 +16,26 @@
# rustc
# already provided by buildRustPackage :p
pkg-config
makeWrapper
];
# runtime deps
buildInputs = with pkgs; [
wayland
wayland-protocols
libGL
alsa-lib
libX11.out
libXi.out
libXcursor.out
libXrandr.out
libxkbcommon.out
libxcb
libXinerama
libXxf86vm
fontconfig
];
meta = {

View File

@@ -1,16 +1,29 @@
{
perSystem = { pkgs, config, ... }: {
devShells.default = pkgs.mkShell {
packages = with pkgs; [
rustfmt
clippy
];
perSystem =
{
pkgs,
config,
...
}:
{
devShells.default = pkgs.mkShell {
packages = with pkgs; [
rustfmt
clippy
];
RUST_LOG = "debug";
RUST_LOG = "debug";
inputsFrom = [
(config.packages.default)
];
LD_LIBRARY_PATH = builtins.concatStringsSep ":" [
"${pkgs.libX11}/lib"
"${pkgs.libXi}/lib"
"${pkgs.libGL}/lib"
"${pkgs.libxkbcommon}/lib"
];
inputsFrom = [
(config.packages.default)
];
};
};
};
}