nixos-playwright
nixos-playwright copied to clipboard
DEPRECATED. Tell your puppeteer or playwright to use nixpkgs's google-chrome-dev's google-chrome-unstable binary. Previously: Patch playwright-downloaded browsers in ~/.cache/ms-playwright to run on N...
nixos-playwright
fix-playwright-browsers patches the playwright-downloaded browser binaries so that they can run on NixOS.
Usage
-
Install the packages
google-chrome-devandfirefox-binvia your NixOS configuration ornix-env -iA. -
Install playwright via npm or yarn and make sure
~/.cache/ms-playwrighthas some browsers. -
Run
fix-playwright-browsersor a browser-specific script from this repo.
Remember to run fix-playwright-browsers after every NixOS upgrade.
Bugs
fix-playwright-webkit does not yet result in a working webkit MiniBrowser; PRs welcome.