9 javaOpts ? "-XX:+UseZGC",
11 stdenvNoCC.mkDerivation (finalAttrs: {
12 pname = "hentai-at-home";
16 url = "https://repo.e-hentai.org/hath/HentaiAtHome_${finalAttrs.version}_src.zip";
17 hash = "sha512-kBB5mn9MwpkZ0z+Fl5ABs4YWBkXkMRcADYSAPkeifyhbYQQPOnijXKYZCkzE4UB3uQ1j6Kj6WnpO/4jquYEiOQ==";
27 LOCALE_ARCHIVE = lib.optionalString (
28 stdenvNoCC.buildPlatform.libc == "glibc"
29 ) "${buildPackages.glibcLocales}/lib/locale/locale-archive";
36 mkdir -p $out/share/java
37 cp build/HentaiAtHome.jar $out/share/java
40 makeWrapper ${jre_headless}/bin/java $out/bin/HentaiAtHome \
41 --add-flags "${javaOpts} -jar $out/share/java/HentaiAtHome.jar"
44 doInstallCheck = true;
45 installCheckPhase = ''
54 homepage = "https://ehwiki.org/wiki/Hentai@Home";
55 description = "Open-source P2P gallery distribution system which reduces the load on the E-Hentai Galleries";
56 license = licenses.gpl3;
57 maintainers = with maintainers; [ terrorjack ];
58 mainProgram = "HentaiAtHome";
59 platforms = jdk.meta.platforms;