kavita: 0.8.4.2 -> 0.8.5.11 (#394359)

This commit is contained in:
Peder Bergebakken Sundt
2025-04-08 00:29:38 +02:00
committed by GitHub
2 changed files with 399 additions and 636 deletions
+13 -5
View File
@@ -2,6 +2,7 @@
lib,
stdenvNoCC,
fetchFromGitHub,
fetchpatch2,
buildDotnetModule,
buildNpmPackage,
dotnetCorePackages,
@@ -10,13 +11,13 @@
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "kavita";
version = "0.8.4.2";
version = "0.8.5.11";
src = fetchFromGitHub {
owner = "kareadita";
repo = "kavita";
rev = "v${finalAttrs.version}";
hash = "sha256-iJ9ocTWcKSUvgN48s5a2N2tz83uid2N4vg1bHAQmnH4=";
hash = "sha256-HSVdEB0yhmm/SZseHQ5kTRBaVqCZZx934Ovq1pTmQkM=";
};
backend = buildDotnetModule {
@@ -32,6 +33,13 @@ stdenvNoCC.mkDerivation (finalAttrs: {
# On update: check if more migrations need to be restored!
# Migrations should at least allow updates from previous NixOS versions
./restore-migrations.diff
# Our nixos test depends on /api/locale; this patch fixes an upstream bug where the first response always fails
# https://github.com/Kareadita/Kavita/pull/3686 remove once upstream is fixed
(fetchpatch2 {
name = "fix-locale-cache.patch";
url = "https://github.com/Kareadita/Kavita/commit/5af07b9525c2164a6548092244bbdf66815b3e95.patch?full_index=1";
hash = "sha256-aFZRxijAbA2mXJM+3kC4P4p76d0p5fEXLiaRhNmjOAA=";
})
];
postPatch = ''
substituteInPlace API/Services/DirectoryService.cs --subst-var out
@@ -44,8 +52,8 @@ stdenvNoCC.mkDerivation (finalAttrs: {
projectFile = "API/API.csproj";
nugetDeps = ./nuget-deps.json;
dotnet-sdk = dotnetCorePackages.sdk_8_0;
dotnet-runtime = dotnetCorePackages.aspnetcore_8_0;
dotnet-sdk = dotnetCorePackages.sdk_9_0;
dotnet-runtime = dotnetCorePackages.aspnetcore_9_0;
};
frontend = buildNpmPackage {
@@ -57,7 +65,7 @@ stdenvNoCC.mkDerivation (finalAttrs: {
npmBuildScript = "prod";
npmFlags = [ "--legacy-peer-deps" ];
npmRebuildFlags = [ "--ignore-scripts" ]; # Prevent playwright from trying to install browsers
npmDepsHash = "sha256-ttEAoLg8OmA4lA7IJS4+5QwpMJdFIoJrWZryFhTZUdI=";
npmDepsHash = "sha256-9SfiH567+q3Id6/7pqWeX0y934V2YFQ4EWIJ+66smgI=";
};
dontBuild = true;
File diff suppressed because it is too large Load Diff