8 javaOpts ? "-XX:+UseZGC",
10 stdenvNoCC.mkDerivation (finalAttrs: {
11 pname = "hentai-at-home";
15 url = "https://repo.e-hentai.org/hath/HentaiAtHome_${finalAttrs.version}_src.zip";
16 hash = "sha512-dcHWZiU0ySLlEhZeK1n2T/dyO6Wk9eS7CpZRSfzY3KvHrPBthQnaFrarSopPXJan1+zWROu1pEff1WSr5+HO4Q==";
26 LOCALE_ARCHIVE = lib.optionalString (
27 stdenvNoCC.buildPlatform.libc == "glibc"
28 ) "${buildPackages.glibcLocales}/lib/locale/locale-archive";
30 makeFlags = [ "all" ];
31 enableParallelBuilding = false;
36 mkdir -p $out/share/java
37 cp build/HentaiAtHome.jar $out/share/java
40 makeWrapper ${jdk_headless}/bin/java $out/bin/HentaiAtHome \
41 --add-flags "${javaOpts} -jar $out/share/java/HentaiAtHome.jar"
46 doInstallCheck = true;
47 installCheckPhase = ''
48 runHook preInstallCheck
54 runHook postInstallCheck
60 homepage = "https://ehwiki.org/wiki/Hentai@Home";
61 description = "Open-source P2P gallery distribution system which reduces the load on the E-Hentai Galleries";
62 license = licenses.gpl3;
63 maintainers = with maintainers; [ terrorjack ];
64 mainProgram = "HentaiAtHome";
65 platforms = jdk_headless.meta.platforms;