2022-08-21 13:32:41 +00:00
|
|
|
{ lib
|
|
|
|
, stdenvNoCC
|
|
|
|
, fetchurl
|
|
|
|
, makeWrapper
|
2023-08-04 22:07:22 +00:00
|
|
|
, jdk17_headless
|
2022-08-21 13:32:41 +00:00
|
|
|
, nixosTests
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
|
|
pname = "komga";
|
2024-01-25 14:12:00 +00:00
|
|
|
version = "1.10.1";
|
2022-08-21 13:32:41 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2024-01-02 11:29:13 +00:00
|
|
|
url = "https://github.com/gotson/${pname}/releases/download/${version}/${pname}-${version}.jar";
|
2024-01-25 14:12:00 +00:00
|
|
|
sha256 = "sha256-fgboHXS5lBvhnAfKUbCmKVjvRp+WF7kuU/VTEgky3VI=";
|
2022-08-21 13:32:41 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
makeWrapper
|
|
|
|
];
|
|
|
|
|
|
|
|
buildCommand = ''
|
2023-08-04 22:07:22 +00:00
|
|
|
makeWrapper ${jdk17_headless}/bin/java $out/bin/komga --add-flags "-jar $src"
|
2022-08-21 13:32:41 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
passthru.tests = {
|
|
|
|
komga = nixosTests.komga;
|
|
|
|
};
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
meta = {
|
2022-08-21 13:32:41 +00:00
|
|
|
description = "Free and open source comics/mangas server";
|
|
|
|
homepage = "https://komga.org/";
|
2024-01-02 11:29:13 +00:00
|
|
|
license = lib.licenses.mit;
|
2023-08-04 22:07:22 +00:00
|
|
|
platforms = jdk17_headless.meta.platforms;
|
2024-01-02 11:29:13 +00:00
|
|
|
maintainers = with lib.maintainers; [ govanify ];
|
|
|
|
mainProgram = "komga";
|
2022-08-21 13:32:41 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|