Skip to content

Commit

Permalink
minion: init at 3.0.12
Browse files Browse the repository at this point in the history
  • Loading branch information
PatrickDaG committed Oct 28, 2024
1 parent b46afe5 commit ef1cd26
Showing 1 changed file with 75 additions and 0 deletions.
75 changes: 75 additions & 0 deletions pkgs/by-name/mi/minion/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
{
stdenvNoCC,
lib,
fetchzip,
openjfx21,
openjdk21,
makeDesktopItem,
wrapGAppsHook3,
makeBinaryWrapper,
}:

let
openjfx = openjfx21.override { withWebKit = true; };
openjdk = openjdk21.override {
enableJavaFX = true;
inherit openjfx;
};

jvmArgs = [
"-cp $out/share/minion/lib"
"--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"
];
in
stdenvNoCC.mkDerivation rec {
version = "3.0.12";
pname = "minion";

src = fetchzip {
url = "https://cdn.mmoui.com/minion/v3/Minion${version}-java.zip";
hash = "sha256-KjSj3TBMY3y5kgIywtIDeil0L17dau/Rb2HuXAulSO8=";
stripRoot = false;
};

nativeBuildInputs = [
makeBinaryWrapper
wrapGAppsHook3
];

dontWrapGApps = true;

installPhase = ''
runHook preInstall
install -D Minion-jfx.jar "$out/share/minion/Minion-jfx.jar"
cp -r ./lib "$out/share/minion/"
makeWrapper ${lib.getExe openjdk} $out/bin/minion \
"''${gappsWrapperArgs[@]}" \
--add-flags "${lib.concatStringsSep " " jvmArgs} -jar $out/share/minion/Minion-jfx.jar"
runHook postInstall
'';

desktopItems = [
(makeDesktopItem {
name = "minion";
exec = "minion";
comment = "MMO Addon manager for Elder Scrolls Online and World of Warcraft";
desktopName = "Minion";
categories = [ "Game" ];
})
];

meta = with lib; {
description = "Addon manager for World of Warcraft and The Elder Scrolls Online";
homepage = "https://minion.mmoui.com/";
license = lib.licenses.unfree;
platforms = lib.platforms.all;
mainProgram = "minion";
maintainers = with lib.maintainers; [ patrickdag ];
};
}

0 comments on commit ef1cd26

Please sign in to comment.