From ef3ccf1fa203de4708642ba7393fa21ad7a5fc95 Mon Sep 17 00:00:00 2001 From: eljamm Date: Thu, 2 Apr 2026 01:22:29 +0200 Subject: [PATCH 1/3] readest: 0.9.100 -> 0.10.1 Changelogs: - https://github.com/readest/readest/releases/tag/v0.9.101 - https://github.com/readest/readest/releases/tag/v0.10.1 --- pkgs/by-name/re/readest/package.nix | 55 ++++++++++++++++++++++++++--- 1 file changed, 51 insertions(+), 4 deletions(-) diff --git a/pkgs/by-name/re/readest/package.nix b/pkgs/by-name/re/readest/package.nix index d443c523d059..c6601a694c55 100644 --- a/pkgs/by-name/re/readest/package.nix +++ b/pkgs/by-name/re/readest/package.nix @@ -1,4 +1,5 @@ { + stdenv, rustPlatform, pnpm_10, fetchPnpmDeps, @@ -25,13 +26,13 @@ }: rustPlatform.buildRustPackage (finalAttrs: { pname = "readest"; - version = "0.9.100"; + version = "0.10.1"; src = fetchFromGitHub { owner = "readest"; repo = "readest"; tag = "v${finalAttrs.version}"; - hash = "sha256-GsIOMfNqjcdtVRZ0XwCkxpQoIonivLJVT4GmZyB86M0="; + hash = "sha256-nlmz3XE8SxWJ8JxBFLRfZmpRyTzYQA2l4qfSC/IsN2k="; fetchSubmodules = true; }; @@ -48,11 +49,11 @@ rustPlatform.buildRustPackage (finalAttrs: { inherit (finalAttrs) pname version src; pnpm = pnpm_10; fetcherVersion = 3; - hash = "sha256-/bzjOdpvuPLBMvX/q1WaO3lFg5/jLz5Ypr5OojssXUI="; + hash = "sha256-0BihRVXYRGKciBhyHd14vco34RYpKE+TUQzwXq6BkrU="; }; cargoRoot = "../.."; - cargoHash = "sha256-qYBHYjwfGkKmGXN8caamZ6/XGtnxe+lmy6dIpdMwS/I="; + cargoHash = "sha256-d8V3mdfE9LgmPtM2GMWbed3u+GBD45cuSkQ44+lToVY="; buildAndTestSubdir = "src-tauri"; @@ -64,6 +65,12 @@ rustPlatform.buildRustPackage (finalAttrs: { substituteInPlace src/services/constants.ts \ --replace-fail "autoCheckUpdates: true" "autoCheckUpdates: false" \ --replace-fail "telemetryEnabled: true" "telemetryEnabled: false" + + mkdir -p src-tauri/plugins/tauri-plugin-turso/dist-js + cp -r ${finalAttrs.passthru.tursoPlugin} src-tauri/plugins/tauri-plugin-turso/dist-js + jq '.scripts.build = "true"' \ + src-tauri/plugins/tauri-plugin-turso/package.json | \ + sponge src-tauri/plugins/tauri-plugin-turso/package.json ''; nativeBuildInputs = [ @@ -93,6 +100,15 @@ rustPlatform.buildRustPackage (finalAttrs: { preBuild = '' # set up pdfjs and simplecc pnpm setup-vendors + + # `tauri-plugin-turso` expects frontend files to exist before the build, else it fails with: + # + # > > tauri-plugin-turso-api@0.1.0 build /build/source/apps/readest-app/src-tauri/plugins/tauri-plugin-turso + # > > true + # > + # > Error Unable to find your web assets, did you forget to build your web app? + # Your frontendDist is set to "../out" (which is `/build/source/apps/readest-app/out`). + pnpm --filter @readest/readest-app build ''; preFixup = lib.optionalString withNvidiaFix '' @@ -106,6 +122,37 @@ rustPlatform.buildRustPackage (finalAttrs: { passthru.updateScript = nix-update-script { }; + passthru.tursoPluginDeps = fetchPnpmDeps { + pname = "tauri-plugin-turso"; + version = finalAttrs.version; + src = "${finalAttrs.src}/apps/readest-app/src-tauri/plugins/tauri-plugin-turso"; + pnpm = pnpm_10; + fetcherVersion = 3; + hash = "sha256-Jf/UaEaLUg/v9ZRInBCEfkDY4d6nwyAIegCMKZe0iAQ="; + }; + + passthru.tursoPlugin = stdenv.mkDerivation { + pname = "tauri-plugin-turso"; + version = finalAttrs.version; + src = "${finalAttrs.src}/apps/readest-app/src-tauri/plugins/tauri-plugin-turso"; + + nativeBuildInputs = [ + pnpm_10 + pnpmConfigHook + nodejs + ]; + + pnpmDeps = finalAttrs.passthru.tursoPluginDeps; + + buildPhase = '' + pnpm build + ''; + + installPhase = '' + cp -r dist-js $out + ''; + }; + meta = { description = "Modern, feature-rich ebook reader"; homepage = "https://github.com/readest/readest"; From 3bb1afbd1f85c6b1eebb6c0c2fafd44f823e3572 Mon Sep 17 00:00:00 2001 From: eljamm Date: Mon, 6 Apr 2026 11:03:23 +0200 Subject: [PATCH 2/3] readest: 0.10.1 -> 0.10.4 Changelog: https://github.com/readest/readest/releases/tag/v0.10.4 --- pkgs/by-name/re/readest/package.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/by-name/re/readest/package.nix b/pkgs/by-name/re/readest/package.nix index c6601a694c55..069d4ad961ab 100644 --- a/pkgs/by-name/re/readest/package.nix +++ b/pkgs/by-name/re/readest/package.nix @@ -26,13 +26,13 @@ }: rustPlatform.buildRustPackage (finalAttrs: { pname = "readest"; - version = "0.10.1"; + version = "0.10.4"; src = fetchFromGitHub { owner = "readest"; repo = "readest"; tag = "v${finalAttrs.version}"; - hash = "sha256-nlmz3XE8SxWJ8JxBFLRfZmpRyTzYQA2l4qfSC/IsN2k="; + hash = "sha256-/4UyRzFALujZ98EdXxiVeLH8W+0Mqm09RZ4zEwOVyyk="; fetchSubmodules = true; }; @@ -49,11 +49,11 @@ rustPlatform.buildRustPackage (finalAttrs: { inherit (finalAttrs) pname version src; pnpm = pnpm_10; fetcherVersion = 3; - hash = "sha256-0BihRVXYRGKciBhyHd14vco34RYpKE+TUQzwXq6BkrU="; + hash = "sha256-7jar0aNXaBfoklGzgvC+1DwsOXgpnOcIcEbIGwWgyfw="; }; cargoRoot = "../.."; - cargoHash = "sha256-d8V3mdfE9LgmPtM2GMWbed3u+GBD45cuSkQ44+lToVY="; + cargoHash = "sha256-rxOjXhXN19w8qAEvELIh0oXuB/N80Dtzmf/i3hjRal0="; buildAndTestSubdir = "src-tauri"; From b624acbba40091891e5c0c89d946d42ee22c951e Mon Sep 17 00:00:00 2001 From: eljamm Date: Mon, 13 Apr 2026 18:06:52 +0200 Subject: [PATCH 3/3] readest: 0.10.4 -> 0.10.6 Changelog: https://github.com/readest/readest/releases/tag/v0.10.6 --- pkgs/by-name/re/readest/package.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/by-name/re/readest/package.nix b/pkgs/by-name/re/readest/package.nix index 069d4ad961ab..71ff987689e1 100644 --- a/pkgs/by-name/re/readest/package.nix +++ b/pkgs/by-name/re/readest/package.nix @@ -26,13 +26,13 @@ }: rustPlatform.buildRustPackage (finalAttrs: { pname = "readest"; - version = "0.10.4"; + version = "0.10.6"; src = fetchFromGitHub { owner = "readest"; repo = "readest"; tag = "v${finalAttrs.version}"; - hash = "sha256-/4UyRzFALujZ98EdXxiVeLH8W+0Mqm09RZ4zEwOVyyk="; + hash = "sha256-48POUgO6torvLJLXpVzDQLF5sZ2Ws+vhiI1x84+exAw="; fetchSubmodules = true; }; @@ -49,11 +49,11 @@ rustPlatform.buildRustPackage (finalAttrs: { inherit (finalAttrs) pname version src; pnpm = pnpm_10; fetcherVersion = 3; - hash = "sha256-7jar0aNXaBfoklGzgvC+1DwsOXgpnOcIcEbIGwWgyfw="; + hash = "sha256-4CO0ouas6TAZDaL2J8zr9wR28QB/DVN4y1Cqe8m1FEg="; }; cargoRoot = "../.."; - cargoHash = "sha256-rxOjXhXN19w8qAEvELIh0oXuB/N80Dtzmf/i3hjRal0="; + cargoHash = "sha256-7wmqDGhtBHU9iOvLrsqGifCEuVdymdljlETkW7dThHA="; buildAndTestSubdir = "src-tauri";