Loading pkgs/by-name/rs/rsshub/0002-fix-network-call.patch 0 → 100644 +18 −0 Original line number Diff line number Diff line diff --git a/scripts/workflow/build-routes.ts b/scripts/workflow/build-routes.ts index 9807cfc..b9dcfb9 100644 --- a/scripts/workflow/build-routes.ts +++ b/scripts/workflow/build-routes.ts @@ -4,6 +4,7 @@ import { parse } from 'tldts'; import fs from 'node:fs'; import path from 'node:path'; import toSource from 'tosource'; +import { exit } from 'node:process'; import { getCurrentPath } from '../../lib/utils/helpers'; const __dirname = getCurrentPath(import.meta.url); @@ -73,3 +74,5 @@ fs.writeFileSync(path.join(__dirname, '../../assets/build/radar-rules.js'), `(${ fs.writeFileSync(path.join(__dirname, '../../assets/build/maintainers.json'), JSON.stringify(maintainers, null, 2)); fs.writeFileSync(path.join(__dirname, '../../assets/build/routes.json'), JSON.stringify(namespaces, null, 2)); fs.writeFileSync(path.join(__dirname, '../../assets/build/routes.js'), `export default ${JSON.stringify(namespaces, null, 2)}`.replaceAll(/"module": "(.*)"\n/g, `"module": $1\n`)); + +exit(0); pkgs/by-name/rs/rsshub/package.nix +5 −4 Original line number Diff line number Diff line Loading @@ -9,24 +9,25 @@ }: stdenv.mkDerivation (finalAttrs: { pname = "rsshub"; version = "0-unstable-2025-02-03"; version = "0-unstable-2025-05-31"; src = fetchFromGitHub { owner = "DIYgod"; repo = "RSSHub"; rev = "72f78e2bfbcf000a6f374a92894430cf845fd1fd"; hash = "sha256-okavLIYJZ+0iCsYtBc2r3FS18MVE/ap2OwRae7rWTrw="; rev = "2dce2e32dd5f4dade2fc915ac8384c953e11cc83"; hash = "sha256-gS/t6O3MishJgi2K9hV22hT95oYHfm44cJqrUo2GPlM="; }; patches = [ (replaceVars ./0001-fix-git-hash.patch { "GIT_HASH" = finalAttrs.src.rev; }) ./0002-fix-network-call.patch ]; pnpmDeps = pnpm_9.fetchDeps { inherit (finalAttrs) pname version src; hash = "sha256-c16Ue5YiRWlF7ldt/8WLi1/xYhGqqr6XqvUieQbvbWg="; hash = "sha256-7qh6YZbIH/kHVssDZxHY7X8bytrnMcUq0MiJzWZYItc="; }; nativeBuildInputs = [ Loading Loading
pkgs/by-name/rs/rsshub/0002-fix-network-call.patch 0 → 100644 +18 −0 Original line number Diff line number Diff line diff --git a/scripts/workflow/build-routes.ts b/scripts/workflow/build-routes.ts index 9807cfc..b9dcfb9 100644 --- a/scripts/workflow/build-routes.ts +++ b/scripts/workflow/build-routes.ts @@ -4,6 +4,7 @@ import { parse } from 'tldts'; import fs from 'node:fs'; import path from 'node:path'; import toSource from 'tosource'; +import { exit } from 'node:process'; import { getCurrentPath } from '../../lib/utils/helpers'; const __dirname = getCurrentPath(import.meta.url); @@ -73,3 +74,5 @@ fs.writeFileSync(path.join(__dirname, '../../assets/build/radar-rules.js'), `(${ fs.writeFileSync(path.join(__dirname, '../../assets/build/maintainers.json'), JSON.stringify(maintainers, null, 2)); fs.writeFileSync(path.join(__dirname, '../../assets/build/routes.json'), JSON.stringify(namespaces, null, 2)); fs.writeFileSync(path.join(__dirname, '../../assets/build/routes.js'), `export default ${JSON.stringify(namespaces, null, 2)}`.replaceAll(/"module": "(.*)"\n/g, `"module": $1\n`)); + +exit(0);
pkgs/by-name/rs/rsshub/package.nix +5 −4 Original line number Diff line number Diff line Loading @@ -9,24 +9,25 @@ }: stdenv.mkDerivation (finalAttrs: { pname = "rsshub"; version = "0-unstable-2025-02-03"; version = "0-unstable-2025-05-31"; src = fetchFromGitHub { owner = "DIYgod"; repo = "RSSHub"; rev = "72f78e2bfbcf000a6f374a92894430cf845fd1fd"; hash = "sha256-okavLIYJZ+0iCsYtBc2r3FS18MVE/ap2OwRae7rWTrw="; rev = "2dce2e32dd5f4dade2fc915ac8384c953e11cc83"; hash = "sha256-gS/t6O3MishJgi2K9hV22hT95oYHfm44cJqrUo2GPlM="; }; patches = [ (replaceVars ./0001-fix-git-hash.patch { "GIT_HASH" = finalAttrs.src.rev; }) ./0002-fix-network-call.patch ]; pnpmDeps = pnpm_9.fetchDeps { inherit (finalAttrs) pname version src; hash = "sha256-c16Ue5YiRWlF7ldt/8WLi1/xYhGqqr6XqvUieQbvbWg="; hash = "sha256-7qh6YZbIH/kHVssDZxHY7X8bytrnMcUq0MiJzWZYItc="; }; nativeBuildInputs = [ Loading