Improve support for Nix dev shell

This commit is contained in:
2025-07-11 12:11:54 +02:00
parent e1bca324c1
commit ccc516ca27
2 changed files with 11 additions and 0 deletions

View File

@@ -24,6 +24,8 @@
base = pkgs.callPackage ./editor.nix (inputs // {inherit system;});
default = base;
};
devShells.default = pkgs.callPackage ./shell.nix {inherit system;};
})
// {
nixosModules = rec {

9
shell.nix Normal file
View File

@@ -0,0 +1,9 @@
{pkgs, ...}:
pkgs.mkShell {
name = "base-game-engine-development-shell";
nativeBuildInputs = [pkgs.gradle_7];
LD_LIBRARY_PATH = with pkgs; "${xorg.libXtst}/lib:${openjfx17}/lib:${glib.out}/lib:${alsa-lib}/lib:${libGL}/lib:${gtk3}/lib";
PROTOBUF_EXECUTABLE = "${pkgs.protobuf_21}/bin/protoc";
}