mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 10:53:11 +00:00
755b915a15
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
59 lines
1.7 KiB
Nix
59 lines
1.7 KiB
Nix
{ lib
|
|
, stdenvNoCC
|
|
, fetchurl
|
|
, makeWrapper
|
|
, jdk17_headless
|
|
, nixosTests
|
|
}:
|
|
|
|
let
|
|
jdk = jdk17_headless;
|
|
in
|
|
|
|
stdenvNoCC.mkDerivation (finalAttrs: {
|
|
pname = "suwayomi-server";
|
|
version = "1.0.0";
|
|
revision = 1498;
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/Suwayomi/Suwayomi-Server/releases/download/v${finalAttrs.version}/Suwayomi-Server-v${finalAttrs.version}-r${toString finalAttrs.revision}.jar";
|
|
hash = "sha256-CskVYc+byfn3mNzbOX1fCXPpjihtWpoRGBpXDY378c0=";
|
|
};
|
|
|
|
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
|
|
'';
|
|
|
|
passthru.tests = {
|
|
suwayomi-server-with-auth = nixosTests.suwayomi-server.with-auth;
|
|
suwayomi-server-without-auth = nixosTests.suwayomi-server.without-auth;
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "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";
|
|
};
|
|
})
|