nixpkgs/pkgs/servers/komga/default.nix

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

39 lines
812 B
Nix
Raw Normal View History

2022-08-12 17:40:30 +02:00
{ lib
, stdenvNoCC
, fetchurl
, makeWrapper
, jdk11_headless
2022-08-12 23:52:52 +02:00
, nixosTests
2022-08-12 17:40:30 +02:00
}:
stdenvNoCC.mkDerivation rec {
pname = "komga";
2022-11-26 11:42:50 +01:00
version = "0.157.5";
2022-08-12 17:40:30 +02:00
src = fetchurl {
url = "https://github.com/gotson/${pname}/releases/download/v${version}/${pname}-${version}.jar";
2022-11-26 11:42:50 +01:00
sha256 = "sha256-cgS8QxxNdE7KMlgb4EJtqpsRUBUFCH+F7Wh0Dh4Gg5Q=";
2022-08-12 17:40:30 +02:00
};
nativeBuildInputs = [
makeWrapper
];
buildCommand = ''
makeWrapper ${jdk11_headless}/bin/java $out/bin/komga --add-flags "-jar $src"
'';
2022-08-12 23:52:52 +02:00
passthru.tests = {
komga = nixosTests.komga;
};
2022-08-12 17:40:30 +02:00
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 ];
};
}