3 , javaOpts ? "-XX:+UseZGC"
11 stdenvNoCC.mkDerivation rec {
12 pname = "HentaiAtHome";
16 url = "https://repo.e-hentai.org/hath/HentaiAtHome_${version}_src.zip";
17 hash = "sha256-ioL/GcnbYjt1IETH8521d1TcLGtENdFzceJui1ywXTY=";
21 nativeBuildInputs = [ jdk makeWrapper ];
24 LOCALE_ARCHIVE = lib.optionalString (stdenvNoCC.buildPlatform.libc == "glibc")
25 "${buildPackages.glibcLocales}/lib/locale/locale-archive";
32 mkdir -p $out/share/java
33 cp build/HentaiAtHome.jar $out/share/java
36 makeWrapper ${jre_headless}/bin/java $out/bin/HentaiAtHome \
37 --add-flags "${javaOpts} -jar $out/share/java/HentaiAtHome.jar"
40 doInstallCheck = true;
41 installCheckPhase = ''
50 homepage = "https://ehwiki.org/wiki/Hentai@Home";
52 "Hentai@Home is an open-source P2P gallery distribution system which reduces the load on the E-Hentai Galleries";
53 license = licenses.gpl3;
54 maintainers = with maintainers; [ terrorjack ];
55 mainProgram = "HentaiAtHome";