feat: add new shell.nix for each relevant java version
This commit is contained in:
parent
707f0c013f
commit
194c1a9bcc
2 changed files with 94 additions and 0 deletions
47
shell21.nix
Normal file
47
shell21.nix
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
# modified version of https://github.com/Tomate0613/launcher-core/blob/main/flake.nix (https://github.com/Tomate0613/launcher-core/blob/abffd112adea4586b4041aad4412f14e2c5c3047/flake.nix)
|
||||
|
||||
{
|
||||
pkgs ? import <nixpkgs> { },
|
||||
}:
|
||||
pkgs.mkShell {
|
||||
# Java
|
||||
packages = with pkgs; [
|
||||
jdk21
|
||||
];
|
||||
|
||||
# Env
|
||||
__GL_THREADED_OPTIMIZATIONS = 0;
|
||||
LD_LIBRARY_PATH = pkgs.lib.makeLibraryPath (
|
||||
with pkgs;
|
||||
[
|
||||
(lib.getLib stdenv.cc.cc)
|
||||
|
||||
## native versions
|
||||
glfw3-minecraft
|
||||
openal
|
||||
|
||||
## openal
|
||||
alsa-lib
|
||||
libjack2
|
||||
libpulseaudio
|
||||
pipewire
|
||||
|
||||
## glfw
|
||||
libGL
|
||||
libx11
|
||||
libxcursor
|
||||
libxext
|
||||
libxrandr
|
||||
libxxf86vm
|
||||
|
||||
## Old minecraft (pre-1.8)
|
||||
libxrender
|
||||
libxtst
|
||||
libxi
|
||||
|
||||
udev # oshi
|
||||
|
||||
flite # Text to speech (Otherwise minecraft will log an error every time it launches)
|
||||
]
|
||||
);
|
||||
}
|
||||
47
shell8.nix
Normal file
47
shell8.nix
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
# modified version of https://github.com/Tomate0613/launcher-core/blob/main/flake.nix (https://github.com/Tomate0613/launcher-core/blob/abffd112adea4586b4041aad4412f14e2c5c3047/flake.nix)
|
||||
|
||||
{
|
||||
pkgs ? import <nixpkgs> { },
|
||||
}:
|
||||
pkgs.mkShell {
|
||||
# Java
|
||||
packages = with pkgs; [
|
||||
jre8
|
||||
];
|
||||
|
||||
# Env
|
||||
__GL_THREADED_OPTIMIZATIONS = 0;
|
||||
LD_LIBRARY_PATH = pkgs.lib.makeLibraryPath (
|
||||
with pkgs;
|
||||
[
|
||||
(lib.getLib stdenv.cc.cc)
|
||||
|
||||
## native versions
|
||||
glfw3-minecraft
|
||||
openal
|
||||
|
||||
## openal
|
||||
alsa-lib
|
||||
libjack2
|
||||
libpulseaudio
|
||||
pipewire
|
||||
|
||||
## glfw
|
||||
libGL
|
||||
libx11
|
||||
libxcursor
|
||||
libxext
|
||||
libxrandr
|
||||
libxxf86vm
|
||||
|
||||
## Old minecraft (pre-1.8)
|
||||
libxrender
|
||||
libxtst
|
||||
libxi
|
||||
|
||||
udev # oshi
|
||||
|
||||
flite # Text to speech (Otherwise minecraft will log an error every time it launches)
|
||||
]
|
||||
);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue