suwayomi-server: 1.1.1 -> 2.1.1867

This commit is contained in:
RatCornu
2025-04-21 20:07:46 +02:00
parent 72fadd0dd2
commit 57c298f8cd
2 changed files with 20 additions and 13 deletions

View File

@@ -17,11 +17,6 @@ let
settings.server.port = 1234;
};
};
testScript = ''
machine.wait_for_unit("suwayomi-server.service")
machine.wait_for_open_port(1234)
machine.succeed("curl --fail http://localhost:1234/")
'';
};
in
@@ -29,6 +24,12 @@ in
without-auth = makeTest (
recursiveUpdate baseTestConfig {
name = "suwayomi-server-without-auth";
testScript = ''
machine.wait_for_unit("suwayomi-server.service")
machine.wait_for_open_port(1234)
machine.succeed("curl --fail http://localhost:1234/")
'';
}
);
@@ -50,6 +51,12 @@ in
};
};
};
testScript = ''
machine.wait_for_unit("suwayomi-server.service")
machine.wait_for_open_port(1234)
machine.succeed("curl --fail -u alice:pass http://localhost:1234/")
'';
}
);
}

View File

@@ -3,22 +3,21 @@
stdenvNoCC,
fetchurl,
makeWrapper,
jdk17_headless,
jdk21_headless,
nixosTests,
}:
let
jdk = jdk17_headless;
jdk = jdk21_headless;
in
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "suwayomi-server";
version = "1.1.1";
revision = 1535;
version = "2.1.1867";
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-mPzREuH89RGhZLK+5aIPuq1gmNGc9MGG0wh4ZV5dLTg=";
url = "https://github.com/Suwayomi/Suwayomi-Server/releases/download/v${finalAttrs.version}/Suwayomi-Server-v${finalAttrs.version}.jar";
hash = "sha256-UeMHwlgeThoAKZGrPjp3UDyLB0xCaVmHqYSnOC0Kxa8=";
};
nativeBuildInputs = [
@@ -42,9 +41,9 @@ stdenvNoCC.mkDerivation (finalAttrs: {
};
meta = with lib; {
description = "Free and open source manga reader server that runs extensions built for Tachiyomi";
description = "Free and open source manga reader server that runs extensions built for Mihon (Tachiyomi)";
longDescription = ''
Suwayomi is an independent Tachiyomi compatible software and is not a Fork of Tachiyomi.
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.
'';
@@ -53,6 +52,7 @@ stdenvNoCC.mkDerivation (finalAttrs: {
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";
};