- flake: jdk8 -> jdk25, nixpkgs 25.05 -> nixos-unstable (glibc 2.44 aligne systeme NixOS 26.11). Corrige runClient: plus de mismatch GLIBC_2.44 sur le driver GPU (mesa/LLVM via /run/opengl-driver). Attributs xorg.* depréciés remplacés par noms top-level. - jar pala rebuild (MD5 5dd172a0d8ac14c924729cea9685174c) déployé dans atlas/.../fabricmods/required/ (server/mods/ était déjà à jour). - atlas/root/distribution.json régénéré: entrée pala 0.2.1 size 308198 -> 512504, MD5 530092... -> 5dd172...
57 lines
1.5 KiB
Nix
57 lines
1.5 KiB
Nix
{
|
|
inputs = {
|
|
# nixos-unstable : doit rester aligne sur la branche du systeme (NixOS 26.11,
|
|
# glibc 2.44). Un pin plus vieux (ex. 25.05/26.05 -> glibc 2.42) casse le
|
|
# chargement du driver GPU (/run/opengl-driver, construit pour glibc 2.44).
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
|
flake-parts.url = "github:hercules-ci/flake-parts";
|
|
systems.url = "github:nix-systems/default";
|
|
};
|
|
|
|
outputs = inputs:
|
|
inputs.flake-parts.lib.mkFlake { inherit inputs; } {
|
|
systems = import inputs.systems;
|
|
|
|
perSystem = { pkgs, lib, ... }:
|
|
let
|
|
# JDK 25 : exige par le toolchain Gradle 9 (build.gradle / runClient).
|
|
java = pkgs.jdk25;
|
|
|
|
nativeBuildInputs = with pkgs; [
|
|
java
|
|
git
|
|
];
|
|
|
|
buildInputs = with pkgs; [
|
|
# OpenGL
|
|
libGL
|
|
mesa
|
|
|
|
# X11 — requis par LWJGL 3 (client MC 26.3 / runClient)
|
|
libx11
|
|
libxcursor
|
|
libxext
|
|
libxi
|
|
libxinerama
|
|
libxrandr
|
|
libxxf86vm
|
|
libxrender
|
|
libxfixes
|
|
|
|
# Audio
|
|
libpulseaudio
|
|
flite
|
|
];
|
|
in {
|
|
devShells.default = pkgs.mkShell {
|
|
inherit nativeBuildInputs buildInputs;
|
|
|
|
env = {
|
|
JAVA_HOME = "${java.home}";
|
|
LD_LIBRARY_PATH = lib.makeLibraryPath buildInputs;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|