fix
This commit is contained in:
5233
packages/pdf-reader-mcp/package-lock.json
generated
Normal file
5233
packages/pdf-reader-mcp/package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
@@ -1,38 +1,27 @@
|
||||
# NOTE: This package uses a wrapper approach because the upstream project
|
||||
# uses bun.lock instead of package-lock.json, which buildNpmPackage requires.
|
||||
# The wrapper invokes npx to run the package with its dependencies.
|
||||
# For a fully offline/reproducible build, upstream would need to provide
|
||||
# a package-lock.json file.
|
||||
{
|
||||
lib,
|
||||
stdenvNoCC,
|
||||
nodejs_22,
|
||||
makeWrapper,
|
||||
buildNpmPackage,
|
||||
fetchzip,
|
||||
}:
|
||||
|
||||
stdenvNoCC.mkDerivation rec {
|
||||
buildNpmPackage rec {
|
||||
pname = "pdf-reader-mcp";
|
||||
version = "2.2.0";
|
||||
version = "2.3.0";
|
||||
|
||||
# No source needed - we use npx to fetch and run the package
|
||||
dontUnpack = true;
|
||||
src = fetchzip {
|
||||
url = "https://registry.npmjs.org/@sylphx/pdf-reader-mcp/-/pdf-reader-mcp-${version}.tgz";
|
||||
hash = "sha256-nLtTYE5pSLigAQqsWx3TvntOign30vUJ4jaCDScm9oY=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
npmDepsHash = "sha256-Z+C1pGJb1gCUR4qlM9ZSjhevqWPdCOVhL631GFaehbc=";
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p $out/bin
|
||||
|
||||
# Create wrapper that uses npx to run the package
|
||||
# npx will cache the package after first run
|
||||
makeWrapper ${nodejs_22}/bin/npx $out/bin/${pname} \
|
||||
--add-flags "--yes" \
|
||||
--add-flags "@sylphx/pdf-reader-mcp@${version}"
|
||||
|
||||
runHook postInstall
|
||||
postPatch = ''
|
||||
cp ${./package-lock.json} package-lock.json
|
||||
'';
|
||||
|
||||
# dist/ is already built in the npm tarball
|
||||
dontNpmBuild = true;
|
||||
|
||||
meta = with lib; {
|
||||
description = "Production-ready MCP server for PDF processing with parallel processing";
|
||||
homepage = "https://github.com/SylphxAI/pdf-reader-mcp";
|
||||
|
||||
Reference in New Issue
Block a user