Improve support for Nix dev shell
This commit is contained in:
@@ -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
9
shell.nix
Normal 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";
|
||||
}
|
||||
Reference in New Issue
Block a user