nixpkgs/pkgs/servers/komga/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

40 lines
835 B
Nix
Raw Normal View History

2022-08-12 15:40:30 +00:00
{ lib
, stdenvNoCC
, fetchurl
, makeWrapper
2023-07-02 16:45:35 +00:00
, jdk17_headless
2022-08-12 21:52:52 +00:00
, nixosTests
2022-08-12 15:40:30 +00:00
}:
stdenvNoCC.mkDerivation rec {
pname = "komga";
2024-07-25 12:36:27 +00:00
version = "1.11.2";
2022-08-12 15:40:30 +00:00
src = fetchurl {
url = "https://github.com/gotson/${pname}/releases/download/${version}/${pname}-${version}.jar";
2024-07-25 12:36:27 +00:00
sha256 = "sha256-gbn0vhk+lYBPnAPwWwbAd+2AQKOkYW+akal/9tUVKVI=";
2022-08-12 15:40:30 +00:00
};
nativeBuildInputs = [
makeWrapper
];
buildCommand = ''
2023-07-02 16:45:35 +00:00
makeWrapper ${jdk17_headless}/bin/java $out/bin/komga --add-flags "-jar $src"
2022-08-12 15:40:30 +00:00
'';
2022-08-12 21:52:52 +00:00
passthru.tests = {
komga = nixosTests.komga;
};
meta = {
2022-08-12 15:40:30 +00:00
description = "Free and open source comics/mangas server";
homepage = "https://komga.org/";
license = lib.licenses.mit;
2023-07-02 16:45:35 +00:00
platforms = jdk17_headless.meta.platforms;
maintainers = with lib.maintainers; [ govanify ];
2023-11-23 21:09:35 +00:00
mainProgram = "komga";
2022-08-12 15:40:30 +00:00
};
}