3
0
Fork 0
forked from mirrors/nixpkgs

HentaiAtHome: init at 1.6.1

This commit is contained in:
Cheng Shao 2021-12-31 12:50:06 +00:00
parent d4c6f7b1cd
commit d68c3dceb2
2 changed files with 39 additions and 0 deletions

View file

@ -0,0 +1,37 @@
{ 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;
graalvm = graalvm17-ce;
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";
license = licenses.gpl3;
maintainers = with maintainers; [ terrorjack ];
};
}

View file

@ -32715,6 +32715,8 @@ with pkgs;
velero = callPackage ../applications/networking/cluster/velero { };
HentaiAtHome = callPackage ../applications/misc/HentaiAtHome { };
hplip = callPackage ../misc/drivers/hplip { };
hplipWithPlugin = hplip.override { withPlugin = true; };