Skip to content

Commit

Permalink
feat(pkgs/rsshub): update it
Browse files Browse the repository at this point in the history
  • Loading branch information
wrvsrx committed Apr 2, 2024
1 parent eb3a4af commit f0e9808
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 13 deletions.
18 changes: 14 additions & 4 deletions pkgs/to-normal-packages/rsshub/default.nix
Original file line number Diff line number Diff line change
@@ -1,21 +1,31 @@
{
mkPnpmPackage,
stdenvNoCC,
chromium,
nodePackages,
git,
source,
}:
let
node-modules =
(mkPnpmPackage {
inherit (source) pname version src;
installEnv.PUPPETEER_SKIP_DOWNLOAD = "1";
noDevDependencies = true;
# noDevDependencies = true;
}).passthru.nodeModules;
in
stdenvNoCC.mkDerivation {
inherit (source) pname version src;
buildInputs = [
chromium
nodePackages.pnpm
git
];
buildPhase = ''
ln -s ${node-modules}/node_modules node_modules
pnpm build
'';
installPhase = ''
mkdir -p $out
ln -s ${node-modules}/node_modules $out/node_modules
cp -r lib $out/lib
cp -r . $out
'';
}
10 changes: 5 additions & 5 deletions pkgs/to-sources/_sources/generated.json
Original file line number Diff line number Diff line change
Expand Up @@ -481,23 +481,23 @@
},
"rsshub": {
"cargoLocks": null,
"date": "2024-02-19",
"date": "2024-04-02",
"extract": null,
"name": "rsshub",
"passthru": null,
"pinned": false,
"src": {
"deepClone": false,
"fetchSubmodules": false,
"leaveDotGit": false,
"leaveDotGit": true,
"name": null,
"owner": "DIYGod",
"repo": "RSSHub",
"rev": "58a1e11dfa89f7af833e24825b342e7fbfd9c1c1",
"sha256": "sha256-LwD4XuCMCpYT33qolLG7Ydspryc6hKUko3aBXCaDrGc=",
"rev": "ab77defb07853d6cc057f062cbcd83207505bdab",
"sha256": "sha256-zwqeLeMh9pTHXYgW0hMjGK8zsBk6JzzSQz7RsBRCDy8=",
"type": "github"
},
"version": "58a1e11dfa89f7af833e24825b342e7fbfd9c1c1"
"version": "ab77defb07853d6cc057f062cbcd83207505bdab"
},
"seal_lake": {
"cargoLocks": null,
Expand Down
10 changes: 6 additions & 4 deletions pkgs/to-sources/_sources/generated.nix
Original file line number Diff line number Diff line change
Expand Up @@ -283,15 +283,17 @@
};
rsshub = {
pname = "rsshub";
version = "58a1e11dfa89f7af833e24825b342e7fbfd9c1c1";
version = "ab77defb07853d6cc057f062cbcd83207505bdab";
src = fetchFromGitHub {
owner = "DIYGod";
repo = "RSSHub";
rev = "58a1e11dfa89f7af833e24825b342e7fbfd9c1c1";
rev = "ab77defb07853d6cc057f062cbcd83207505bdab";
fetchSubmodules = false;
sha256 = "sha256-LwD4XuCMCpYT33qolLG7Ydspryc6hKUko3aBXCaDrGc=";
deepClone = false;
leaveDotGit = true;
sha256 = "sha256-zwqeLeMh9pTHXYgW0hMjGK8zsBk6JzzSQz7RsBRCDy8=";
};
date = "2024-02-19";
date = "2024-04-02";
};
seal_lake = {
pname = "seal_lake";
Expand Down
1 change: 1 addition & 0 deletions pkgs/to-sources/nvfetcher.toml
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ fetch.github = "NVIDIA/cccl"
[rsshub]
src.git = "https://github.com/DIYGod/RSSHub"
fetch.github = "DIYGod/RSSHub"
git.leaveDotGit = true

[calibre]
src.github_tag = "kovidgoyal/calibre"
Expand Down

0 comments on commit f0e9808

Please sign in to comment.