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-09-26 11:04:55 +00:00
|
|
|
version = "1.13.0";
|
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-09-26 11:04:55 +00:00
|
|
|
sha256 = "sha256-ihZS4mNHOk0QoK1SCfjVWATyfGNpwTS/X4f5tr2aoBU=";
|
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
|
|
|
};
|
|
|
|
|
|
|
|
}
|