Files
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

60 lines
1.8 KiB
Nix

{
lib,
stdenvNoCC,
fetchurl,
makeWrapper,
jdk21_headless,
nixosTests,
}:
let
jdk = jdk21_headless;
in
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "suwayomi-server";
version = "2.1.1867";
src = fetchurl {
url = "https://github.com/Suwayomi/Suwayomi-Server/releases/download/v${finalAttrs.version}/Suwayomi-Server-v${finalAttrs.version}.jar";
hash = "sha256-UeMHwlgeThoAKZGrPjp3UDyLB0xCaVmHqYSnOC0Kxa8=";
};
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 Mihon (Tachiyomi)";
longDescription = ''
Suwayomi is an independent Mihon (Tachiyomi) compatible software and is not a Fork of Mihon (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;
sourceProvenance = [ sourceTypes.binaryBytecode ];
maintainers = with maintainers; [ ratcornu ];
mainProgram = "tachidesk-server";
};
})