33 lines
776 B
Nix
33 lines
776 B
Nix
{
|
|
lib,
|
|
buildNpmPackage,
|
|
fetchzip,
|
|
}:
|
|
|
|
buildNpmPackage rec {
|
|
pname = "mcp-searxng";
|
|
version = "2.4.0";
|
|
|
|
src = fetchzip {
|
|
url = "https://registry.npmjs.org/mcp-searxng/-/mcp-searxng-${version}.tgz";
|
|
hash = "sha256-WB1p3+IDPpRzXh1WSFbWA3ezX8Ih2FsZlV3D3od/v1A=";
|
|
};
|
|
|
|
npmDepsHash = "sha256-srchzmiehwh4wOzhXfDbHiT7t4i8FPRSlakdUGIF/Ks=";
|
|
|
|
postPatch = ''
|
|
cp ${./package-lock.json} package-lock.json
|
|
'';
|
|
|
|
# dist/ is already built in the npm tarball
|
|
dontNpmBuild = true;
|
|
|
|
meta = with lib; {
|
|
description = "MCP server integrating SearXNG for privacy-respecting web search and URL reading";
|
|
homepage = "https://github.com/ihor-sokoliuk/mcp-searxng";
|
|
license = licenses.mit;
|
|
mainProgram = pname;
|
|
platforms = platforms.all;
|
|
};
|
|
}
|