polymc: 1.0.6 -> 1.1.0

This commit is contained in:
Mustafa Çalışkan 2022-03-13 11:40:58 +03:00
parent 06bdb101b9
commit 6bda8f8d5c
No known key found for this signature in database
GPG key ID: 53E17A18229A0391

View file

@ -11,18 +11,20 @@
, libpulseaudio , libpulseaudio
, qtbase , qtbase
, libGL , libGL
, glfw
, openal
, msaClientID ? "" , msaClientID ? ""
}: }:
mkDerivation rec { mkDerivation rec {
pname = "polymc"; pname = "polymc";
version = "1.0.6"; version = "1.1.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "PolyMC"; owner = "PolyMC";
repo = "PolyMC"; repo = "PolyMC";
rev = version; rev = version;
sha256 = "sha256-KgLWbZxtxTpuFdMOJNyADYw9rMWoLgczrbSrH4qv6NI="; sha256 = "sha256-p5vbpNZI/JiQJclEo/Pu/46qVul+3DAzaoow8jabHrI=";
fetchSubmodules = true; fetchSubmodules = true;
}; };
@ -36,7 +38,7 @@ mkDerivation rec {
--replace 'scanJavaDir("/usr/lib32/jvm")' 'javas.append("${jdk8}/lib/openjdk/bin/java")' --replace 'scanJavaDir("/usr/lib32/jvm")' 'javas.append("${jdk8}/lib/openjdk/bin/java")'
''; '';
cmakeFlags = [ "-DLauncher_LAYOUT=lin-system" ] ++ cmakeFlags = [ "-DLauncher_PORTABLE=0" ] ++
lib.optionals (msaClientID != "") [ "-DLauncher_MSA_CLIENT_ID=${msaClientID}" ]; lib.optionals (msaClientID != "") [ "-DLauncher_MSA_CLIENT_ID=${msaClientID}" ];
dontWrapQtApps = true; dontWrapQtApps = true;
@ -50,6 +52,8 @@ mkDerivation rec {
libXxf86vm libXxf86vm
libpulseaudio libpulseaudio
libGL libGL
glfw
openal
]; ];
in '' in ''
# xorg.xrandr needed for LWJGL [2.9.2, 3) https://github.com/LWJGL/lwjgl/issues/128 # xorg.xrandr needed for LWJGL [2.9.2, 3) https://github.com/LWJGL/lwjgl/issues/128
@ -68,6 +72,7 @@ mkDerivation rec {
their associated options with a simple interface. their associated options with a simple interface.
''; '';
platforms = platforms.linux; platforms = platforms.linux;
changelog = "https://github.com/PolyMC/PolyMC/releases/tag/${version}";
license = licenses.gpl3Plus; license = licenses.gpl3Plus;
maintainers = with maintainers; [ cleverca22 starcraft66 ]; maintainers = with maintainers; [ cleverca22 starcraft66 ];
}; };