Improve support for Nix dev shell

This commit is contained in:
2025-07-11 14:41:10 +02:00
parent 2e4459b92c
commit e8cc766ded
2 changed files with 8 additions and 0 deletions

View File

@@ -24,5 +24,7 @@
game = pkgs.callPackage ./game.nix (inputs // {inherit system;});
default = game;
};
devShells.default = pkgs.callPackage ./shell.nix {inherit system;};
});
}

6
shell.nix Normal file
View File

@@ -0,0 +1,6 @@
{pkgs, ...}:
pkgs.mkShell {
name = "base-demo-game-development-shell";
LD_LIBRARY_PATH = with pkgs; "${xorg.libXtst}/lib:${openjfx17}/lib:${glib.out}/lib:${alsa-lib}/lib:${libGL}/lib:${gtk3}/lib";
}