forked from mirrors/nixpkgs
suwayomi-server: init at 0.7.0
This commit is contained in:
parent
0f91d9064b
commit
b7fa63b42b
52
pkgs/by-name/su/suwayomi-server/package.nix
Normal file
52
pkgs/by-name/su/suwayomi-server/package.nix
Normal file
|
@ -0,0 +1,52 @@
|
|||
{ lib
|
||||
, stdenvNoCC
|
||||
, fetchurl
|
||||
, makeWrapper
|
||||
, jdk17_headless
|
||||
}:
|
||||
|
||||
let
|
||||
jdk = jdk17_headless;
|
||||
in
|
||||
|
||||
stdenvNoCC.mkDerivation (finalAttrs: {
|
||||
pname = "suwayomi-server";
|
||||
version = "0.7.0";
|
||||
revision = 1197;
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/Suwayomi/Suwayomi-Server/releases/download/v${finalAttrs.version}/Tachidesk-Server-v${finalAttrs.version}-r${toString finalAttrs.revision}.jar";
|
||||
hash = "sha256-4DO1WiBCu/8ypFgJdBmEwQXQ1xaWAlbt8N5TELomVVA=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
makeWrapper
|
||||
];
|
||||
|
||||
dontUnpack = true;
|
||||
|
||||
buildPhase = ''
|
||||
runHook preBuild
|
||||
|
||||
makeWrapper ${jdk}/bin/java $out/bin/tachidesk-server \
|
||||
--add-flags "-Dsuwayomi.tachidesk.config.server.initialOpenInBrowserEnabled=false -jar $src"
|
||||
|
||||
runHook postBuild
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "A free and open source manga reader server that runs extensions built for Tachiyomi.";
|
||||
longDescription = ''
|
||||
Suwayomi is an independent Tachiyomi compatible software and is not a Fork of Tachiyomi.
|
||||
|
||||
Suwayomi-Server is as multi-platform as you can get. Any platform that runs java and/or has a modern browser can run it. This includes Windows, Linux, macOS, chrome OS, etc.
|
||||
'';
|
||||
homepage = "https://github.com/Suwayomi/Suwayomi-Server";
|
||||
downloadPage = "https://github.com/Suwayomi/Suwayomi-Server/releases";
|
||||
changelog = "https://github.com/Suwayomi/Suwayomi-Server/releases/tag/v${finalAttrs.version}";
|
||||
license = licenses.mpl20;
|
||||
platforms = jdk.meta.platforms;
|
||||
maintainers = with maintainers; [ ratcornu ];
|
||||
mainProgram = "tachidesk-server";
|
||||
};
|
||||
})
|
Loading…
Reference in a new issue