18 , gobject-introspection
24 url = "https://github.com/huanghongxun/HMCL/raw/release-${version}/HMCLauncher/HMCL/HMCL.ico";
25 hash = "sha256-+EYL33VAzKHOMp9iXoJaSGZfv+ymDDYIx6i/1o47Dmc=";
28 stdenv.mkDerivation (finalAttrs: {
33 url = "https://github.com/huanghongxun/HMCL/releases/download/release-${version}/HMCL-${version}.jar";
34 hash = "sha256-iaOg0OiGEdS0E7UTanZkciWDHqeZoAdBM3ghH10Wbd8=";
46 comment = finalAttrs.meta.description;
48 categories = [ "Game" ];
62 mkdir -p $out/{bin,lib/hmcl}
63 cp $src $out/lib/hmcl/hmcl.jar
64 magick ${icon} hmcl.png
65 install -Dm644 hmcl-1.png $out/share/icons/hicolor/32x32/apps/hmcl.png
72 libpath = lib.makeLibraryPath ([
78 ] ++ lib.optionals stdenv.hostPlatform.isLinux [
92 makeBinaryWrapper ${jre}/bin/java $out/bin/hmcl \
93 --add-flags "-jar $out/lib/hmcl/hmcl.jar" \
94 --set LD_LIBRARY_PATH ${libpath} \
95 ''${gappsWrapperArgs[@]}
101 homepage = "https://hmcl.huangyuhui.net";
102 description = "A Minecraft Launcher which is multi-functional, cross-platform and popular";
103 mainProgram = "hmcl";
104 sourceProvenance = with sourceTypes; [ binaryBytecode ];
105 license = licenses.gpl3Only;
106 maintainers = with maintainers; [ daru-san ];
107 inherit (jre.meta) platforms;