mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-15 03:15:56 +03:00
633a508ba4
komga: 0.157.0 -> 0.157.1
39 lines
812 B
Nix
39 lines
812 B
Nix
{ lib
|
|
, stdenvNoCC
|
|
, fetchurl
|
|
, makeWrapper
|
|
, jdk11_headless
|
|
, nixosTests
|
|
}:
|
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
pname = "komga";
|
|
version = "0.157.1";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/gotson/${pname}/releases/download/v${version}/${pname}-${version}.jar";
|
|
sha256 = "sha256-EXwMvUVNi2FuN+/6HI+HOxBpbwELhTSyvRtyGNgzSAQ=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
makeWrapper
|
|
];
|
|
|
|
buildCommand = ''
|
|
makeWrapper ${jdk11_headless}/bin/java $out/bin/komga --add-flags "-jar $src"
|
|
'';
|
|
|
|
passthru.tests = {
|
|
komga = nixosTests.komga;
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
|
|
}
|