Skip to content

Commit

Permalink
feat(pkgs/rsshub): reduce closure size
Browse files Browse the repository at this point in the history
  • Loading branch information
wrvsrx committed Jun 6, 2024
1 parent e408f16 commit affbd1a
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion pkgs/to-normal-packages/rsshub/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,14 @@ let
inherit (source) pname version src;
installEnv.PUPPETEER_SKIP_DOWNLOAD = "1";
noDevDependencies = true;
}).passthru.nodeModules;
}).passthru.nodeModules.overrideAttrs
(old: {
installPhase =
old.installPhase
+ ''
rm -f $out/node_modules/.pnpm/lock.yaml
'';
});
rsshub-website = stdenvNoCC.mkDerivation {
inherit (source) pname version src;
patches = [
Expand Down Expand Up @@ -51,6 +58,9 @@ let
export { gitHash, gitDate };
'')
];
passthru = {
inherit node-modules;
};
buildInputs = [ nodePackages.pnpm ];
buildPhase = ''
ln -s ${node-modules}/node_modules node_modules
Expand Down

0 comments on commit affbd1a

Please sign in to comment.