2022-08-21 13:32:41 +00:00
|
|
|
{ lib
|
|
|
|
, stdenvNoCC
|
|
|
|
, fetchurl
|
|
|
|
, makeWrapper
|
|
|
|
, jdk11_headless
|
|
|
|
, nixosTests
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
|
|
pname = "komga";
|
2023-02-02 18:25:31 +00:00
|
|
|
version = "0.161.0";
|
2022-08-21 13:32:41 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/gotson/${pname}/releases/download/v${version}/${pname}-${version}.jar";
|
2023-02-02 18:25:31 +00:00
|
|
|
sha256 = "sha256-TZ/TxX9OgDGx8zD2mI8cTDPZSqBjkYN3Uy+W9MXbJOI=";
|
2022-08-21 13:32:41 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
makeWrapper
|
|
|
|
];
|
|
|
|
|
|
|
|
buildCommand = ''
|
|
|
|
makeWrapper ${jdk11_headless}/bin/java $out/bin/komga --add-flags "-jar $src"
|
|
|
|
'';
|
|
|
|
|
|
|
|
passthru.tests = {
|
|
|
|
komga = nixosTests.komga;
|
|
|
|
};
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Free and open source comics/mangas server";
|
|
|
|
homepage = "https://komga.org/";
|
|
|
|
license = licenses.mit;
|
|
|
|
platforms = jdk11_headless.meta.platforms;
|
|
|
|
maintainers = with maintainers; [ govanify ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|