2022-08-12 17:40:30 +02:00
|
|
|
{ lib
|
|
|
|
, stdenvNoCC
|
|
|
|
, fetchurl
|
|
|
|
, makeWrapper
|
2023-07-02 18:45:35 +02:00
|
|
|
, jdk17_headless
|
2022-08-12 23:52:52 +02:00
|
|
|
, nixosTests
|
2022-08-12 17:40:30 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
|
|
pname = "komga";
|
2024-03-12 13:32:53 +01:00
|
|
|
version = "1.10.4";
|
2022-08-12 17:40:30 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2023-12-01 23:28:07 +01:00
|
|
|
url = "https://github.com/gotson/${pname}/releases/download/${version}/${pname}-${version}.jar";
|
2024-03-12 13:32:53 +01:00
|
|
|
sha256 = "sha256-WKiybcQH+xxBUUbuXrN2u7oIBbQBp34Y1mgJe0u7hiI=";
|
2022-08-12 17:40:30 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
makeWrapper
|
|
|
|
];
|
|
|
|
|
|
|
|
buildCommand = ''
|
2023-07-02 18:45:35 +02:00
|
|
|
makeWrapper ${jdk17_headless}/bin/java $out/bin/komga --add-flags "-jar $src"
|
2022-08-12 17:40:30 +02:00
|
|
|
'';
|
|
|
|
|
2022-08-12 23:52:52 +02:00
|
|
|
passthru.tests = {
|
|
|
|
komga = nixosTests.komga;
|
|
|
|
};
|
|
|
|
|
2023-12-01 23:28:07 +01:00
|
|
|
meta = {
|
2022-08-12 17:40:30 +02:00
|
|
|
description = "Free and open source comics/mangas server";
|
|
|
|
homepage = "https://komga.org/";
|
2023-12-01 23:28:07 +01:00
|
|
|
license = lib.licenses.mit;
|
2023-07-02 18:45:35 +02:00
|
|
|
platforms = jdk17_headless.meta.platforms;
|
2023-12-01 23:28:07 +01:00
|
|
|
maintainers = with lib.maintainers; [ govanify ];
|
2023-11-23 22:09:35 +01:00
|
|
|
mainProgram = "komga";
|
2022-08-12 17:40:30 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|