Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
46 lines
1.4 KiB
Nix
46 lines
1.4 KiB
Nix
{
|
|
lib,
|
|
buildNpmPackage,
|
|
fetchFromGitHub,
|
|
playwright-driver,
|
|
playwright-test,
|
|
}:
|
|
|
|
buildNpmPackage rec {
|
|
pname = "playwright-mcp";
|
|
version = "0.0.34";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Microsoft";
|
|
repo = "playwright-mcp";
|
|
tag = "v${version}";
|
|
hash = "sha256-SGSzX41D9nOTsGiU16tRFXgarWgePRsNWIcEnNGH0lQ=";
|
|
};
|
|
|
|
npmDepsHash = "sha256-+6HmuR1Z5cJkoZq/vsFq6wNsYpZeDS42wwmh3hEgJhM=";
|
|
|
|
postInstall = ''
|
|
rm -r $out/lib/node_modules/@playwright/mcp/node_modules/playwright
|
|
rm -r $out/lib/node_modules/@playwright/mcp/node_modules/playwright-core
|
|
ln -s ${playwright-test}/lib/node_modules/playwright $out/lib/node_modules/@playwright/mcp/node_modules/playwright
|
|
ln -s ${playwright-test}/lib/node_modules/playwright-core $out/lib/node_modules/@playwright/mcp/node_modules/playwright-core
|
|
|
|
wrapProgram $out/bin/mcp-server-playwright \
|
|
--set PLAYWRIGHT_BROWSERS_PATH ${playwright-driver.browsers}
|
|
'';
|
|
|
|
passthru = {
|
|
# Package and playwright driver versions are tightly coupled.
|
|
skipBulkUpdate = true;
|
|
};
|
|
|
|
meta = {
|
|
changelog = "https://github.com/Microsoft/playwright-mcp/releases/tag/v${version}";
|
|
description = "Playwright MCP server";
|
|
homepage = "https://github.com/Microsoft/playwright-mcp";
|
|
license = lib.licenses.asl20;
|
|
mainProgram = "mcp-server-playwright";
|
|
maintainers = [ lib.maintainers.kalekseev ];
|
|
};
|
|
}
|