10 driver = playwright-driver;
11 browsers = playwright-driver.browsers;
14 # nodeDependencies / package / shell
15 playwright-test-raw = (callPackage ./default.nix { })."@playwright/test-${driver.version}";
17 playwright-test = playwright-test-raw.overrideAttrs (oa: {
18 nativeBuildInputs = oa.nativeBuildInputs or [ ] ++ [
22 # you need to set both the path and version else playwright looks into the wrong one
23 wrapProgram $out/bin/playwright \
24 --set-default PLAYWRIGHT_BROWSERS_PATH "${browsers}" \
25 --prefix NODE_PATH : ${placeholder "out"}/lib/node_modules