2022-01-03 16:56:52 +00:00
|
|
|
{ buildGraalvmNativeImage, fetchzip, graalvm17-ce, lib }:
|
|
|
|
|
|
|
|
buildGraalvmNativeImage rec {
|
|
|
|
pname = "HentaiAtHome";
|
|
|
|
version = "1.6.1";
|
|
|
|
src = fetchzip {
|
|
|
|
url = "https://repo.e-hentai.org/hath/HentaiAtHome_${version}.zip";
|
|
|
|
hash =
|
|
|
|
"sha512-nGGCuVovj4NJGrihKKYXnh0Ic9YD36o7r6wv9zSivZn22zm8lBYVXP85LnOw2z9DiJARivOctQGl48YFD7vxOQ==";
|
|
|
|
stripRoot = false;
|
|
|
|
};
|
|
|
|
|
|
|
|
jar = "${src}/HentaiAtHome.jar";
|
|
|
|
dontUnpack = true;
|
|
|
|
|
2022-04-03 18:54:34 +00:00
|
|
|
graalvmDrv = graalvm17-ce;
|
2022-01-03 16:56:52 +00:00
|
|
|
extraNativeImageBuildArgs = [
|
|
|
|
"--enable-url-protocols=http,https"
|
|
|
|
"--install-exit-handlers"
|
|
|
|
"--no-fallback"
|
|
|
|
];
|
|
|
|
|
|
|
|
doInstallCheck = true;
|
|
|
|
installCheckPhase = ''
|
|
|
|
pushd $(mktemp -d)
|
|
|
|
$out/bin/HentaiAtHome
|
|
|
|
popd
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://ehwiki.org/wiki/Hentai@Home";
|
|
|
|
description =
|
|
|
|
"Hentai@Home is an open-source P2P gallery distribution system which reduces the load on the E-Hentai Galleries";
|
2022-06-16 17:23:12 +00:00
|
|
|
sourceProvenance = with sourceTypes; [ binaryBytecode ];
|
2022-01-03 16:56:52 +00:00
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ terrorjack ];
|
|
|
|
};
|
|
|
|
}
|