shoko: init at 5.1.0

This commit is contained in:
diniamo
2025-12-22 08:52:44 +01:00
parent f4ef627c0c
commit ef95938cb4
2 changed files with 2194 additions and 0 deletions
+2137
View File
File diff suppressed because it is too large Load Diff
+57
View File
@@ -0,0 +1,57 @@
{
buildDotnetModule,
fetchFromGitHub,
dotnet-sdk_8,
dotnet-aspnetcore_8,
nixosTests,
lib,
mediainfo,
rhash,
nix-update-script,
}:
buildDotnetModule (finalAttrs: {
pname = "shoko";
version = "5.1.0";
src = fetchFromGitHub {
owner = "ShokoAnime";
repo = "ShokoServer";
tag = "v${finalAttrs.version}";
hash = "sha256-ZO5S0zMwzr4giaO1bmQ4dLBIPrv6eZY7k9Os4GiO4C4=";
fetchSubmodules = true;
};
dotnet-sdk = dotnet-sdk_8;
dotnet-runtime = dotnet-aspnetcore_8;
nugetDeps = ./deps.json;
projectFile = "Shoko.CLI/Shoko.CLI.csproj";
dotnetBuildFlags = "/p:InformationalVersion=\"channel=stable\"";
executables = [ "Shoko.CLI" ];
makeWrapperArgs = [
"--prefix"
"PATH"
":"
"${mediainfo}/bin"
];
runtimeDeps = [ rhash ];
passthru = {
updateScript = nix-update-script { };
tests.shoko = nixosTests.shoko;
};
meta = {
homepage = "https://github.com/ShokoAnime/ShokoServer";
changelog = "https://github.com/ShokoAnime/ShokoServer/releases/tag/v${finalAttrs.version}";
description = "Backend for the Shoko anime management system";
license = lib.licenses.mit;
mainProgram = "Shoko.CLI";
maintainers = with lib.maintainers; [
diniamo
nanoyaki
];
inherit (dotnet-sdk_8.meta) platforms;
};
})