33 lines
793 B
Nix
33 lines
793 B
Nix
{
|
|
lib,
|
|
buildNpmPackage,
|
|
fetchzip,
|
|
}:
|
|
|
|
buildNpmPackage rec {
|
|
pname = "pdf-reader-mcp";
|
|
version = "2.3.0";
|
|
|
|
src = fetchzip {
|
|
url = "https://registry.npmjs.org/@sylphx/pdf-reader-mcp/-/pdf-reader-mcp-${version}.tgz";
|
|
hash = "sha256-nLtTYE5pSLigAQqsWx3TvntOign30vUJ4jaCDScm9oY=";
|
|
};
|
|
|
|
npmDepsHash = "sha256-Z+C1pGJb1gCUR4qlM9ZSjhevqWPdCOVhL631GFaehbc=";
|
|
|
|
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";
|
|
license = licenses.mit;
|
|
mainProgram = "pdf-reader-mcp";
|
|
platforms = platforms.all;
|
|
};
|
|
}
|