mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-11 12:15:34 +03:00
rsshub: minor cleanup
Signed-off-by: phanirithvij <phanirithvij2000@gmail.com>
This commit is contained in:
parent
b57b6e8398
commit
80a434df31
1 changed files with 5 additions and 6 deletions
|
@ -7,6 +7,9 @@
|
||||||
replaceVars,
|
replaceVars,
|
||||||
stdenv,
|
stdenv,
|
||||||
}:
|
}:
|
||||||
|
let
|
||||||
|
pnpm = pnpm_9;
|
||||||
|
in
|
||||||
stdenv.mkDerivation (finalAttrs: {
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
pname = "rsshub";
|
pname = "rsshub";
|
||||||
version = "0-unstable-2025-05-31";
|
version = "0-unstable-2025-05-31";
|
||||||
|
@ -25,7 +28,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||||
./0002-fix-network-call.patch
|
./0002-fix-network-call.patch
|
||||||
];
|
];
|
||||||
|
|
||||||
pnpmDeps = pnpm_9.fetchDeps {
|
pnpmDeps = pnpm.fetchDeps {
|
||||||
inherit (finalAttrs) pname version src;
|
inherit (finalAttrs) pname version src;
|
||||||
hash = "sha256-7qh6YZbIH/kHVssDZxHY7X8bytrnMcUq0MiJzWZYItc=";
|
hash = "sha256-7qh6YZbIH/kHVssDZxHY7X8bytrnMcUq0MiJzWZYItc=";
|
||||||
};
|
};
|
||||||
|
@ -33,23 +36,19 @@ stdenv.mkDerivation (finalAttrs: {
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
makeBinaryWrapper
|
makeBinaryWrapper
|
||||||
nodejs
|
nodejs
|
||||||
pnpm_9.configHook
|
pnpm.configHook
|
||||||
];
|
];
|
||||||
|
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
runHook preBuild
|
runHook preBuild
|
||||||
|
|
||||||
pnpm build
|
pnpm build
|
||||||
|
|
||||||
runHook postBuild
|
runHook postBuild
|
||||||
'';
|
'';
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
runHook preInstall
|
runHook preInstall
|
||||||
|
|
||||||
mkdir -p $out/bin $out/lib/rsshub
|
mkdir -p $out/bin $out/lib/rsshub
|
||||||
cp -r lib node_modules assets api package.json tsconfig.json $out/lib/rsshub
|
cp -r lib node_modules assets api package.json tsconfig.json $out/lib/rsshub
|
||||||
|
|
||||||
runHook postInstall
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue