chore(minio): update pkg

This commit is contained in:
Patrick 2024-10-23 14:42:36 +02:00
parent da39d21a3a
commit 8952bdb152
Signed by: patrick
GPG key ID: 451F95EFB8BECD0F

View file

@ -2,7 +2,7 @@
stdenvNoCC, stdenvNoCC,
lib, lib,
fetchzip, fetchzip,
openjdk17, openjdk22,
makeDesktopItem, makeDesktopItem,
javaPackages, javaPackages,
gsettings-desktop-schemas, gsettings-desktop-schemas,
@ -10,8 +10,8 @@
}: }:
let let
openjfx = javaPackages.openjfx17.override { withWebKit = true; }; openjfx = javaPackages.openjfx22.override { withWebKit = true; };
jdk = openjdk17.override ( jdk = openjdk22.override (
prev: prev:
prev prev
// { // {
@ -25,7 +25,7 @@ stdenvNoCC.mkDerivation rec {
pname = "minion"; pname = "minion";
src = fetchzip { src = fetchzip {
url = "https://cdn.mmoui.com/minion/v3/Minion3.0.12-java.zip"; url = "https://cdn.mmoui.com/minion/v3/Minion${version}-java.zip";
hash = "sha256-KjSj3TBMY3y5kgIywtIDeil0L17dau/Rb2HuXAulSO8="; hash = "sha256-KjSj3TBMY3y5kgIywtIDeil0L17dau/Rb2HuXAulSO8=";
stripRoot = false; stripRoot = false;
}; };
@ -40,7 +40,12 @@ stdenvNoCC.mkDerivation rec {
#!${stdenvNoCC.shell} #!${stdenvNoCC.shell}
CLASSPATH="$out/lib" CLASSPATH="$out/lib"
XDG_DATA_DIRS="${gsettings-desktop-schemas}/share/gsettings-schemas/${gsettings-desktop-schemas.name}:${gtk3}/share/gsettings-schemas/${gtk3.name}:XDG_DATA_DIRS" XDG_DATA_DIRS="${gsettings-desktop-schemas}/share/gsettings-schemas/${gsettings-desktop-schemas.name}:${gtk3}/share/gsettings-schemas/${gtk3.name}:XDG_DATA_DIRS"
exec ${lib.getExe jdk} -cp "$CLASSPATH ./lib" -jar "$out/lib/${pname}/Minion-jfx.jar" "\$@" exec ${lib.getExe jdk} \
--add-exports=javafx.graphics/com.sun.javafx.css=ALL-UNNAMED \
--add-exports=javafx.graphics/javafx.scene.image=ALL-UNNAMED \
--add-opens=javafx.graphics/javafx.scene.image=ALL-UNNAMED \
--add-opens=java.base/java.lang=ALL-UNNAMED \
-cp "$CLASSPATH ./lib" -jar "$out/lib/${pname}/Minion-jfx.jar" "\$@"
EOF EOF
chmod a+x "$out/bin/${pname}" chmod a+x "$out/bin/${pname}"
@ -58,8 +63,11 @@ stdenvNoCC.mkDerivation rec {
]; ];
meta = with lib; { meta = with lib; {
description = "MMO Addon manager"; description = "Addon manager for World of Warcraft and The Elder Scrolls Online";
homepage = "https://www.mmoui.com/"; homepage = "https://minion.mmoui.com/";
platforms = platforms.linux ++ platforms.darwin; license = lib.licenses.unfree;
platforms = lib.platforms.all;
mainProgram = minion;
maintainers = with lib.maintainers; [ patrickdag ];
}; };
} }