23b612e36f
GitOrigin-RevId: ae5c332cbb5827f6b1f02572496b141021de335f
39 lines
835 B
Nix
39 lines
835 B
Nix
{ lib
|
|
, stdenvNoCC
|
|
, fetchurl
|
|
, makeWrapper
|
|
, jdk17_headless
|
|
, nixosTests
|
|
}:
|
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
pname = "komga";
|
|
version = "1.10.1";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/gotson/${pname}/releases/download/${version}/${pname}-${version}.jar";
|
|
sha256 = "sha256-fgboHXS5lBvhnAfKUbCmKVjvRp+WF7kuU/VTEgky3VI=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
makeWrapper
|
|
];
|
|
|
|
buildCommand = ''
|
|
makeWrapper ${jdk17_headless}/bin/java $out/bin/komga --add-flags "-jar $src"
|
|
'';
|
|
|
|
passthru.tests = {
|
|
komga = nixosTests.komga;
|
|
};
|
|
|
|
meta = {
|
|
description = "Free and open source comics/mangas server";
|
|
homepage = "https://komga.org/";
|
|
license = lib.licenses.mit;
|
|
platforms = jdk17_headless.meta.platforms;
|
|
maintainers = with lib.maintainers; [ govanify ];
|
|
mainProgram = "komga";
|
|
};
|
|
|
|
}
|