fix-playwright-browsers patches the playwright-downloaded browser binaries so that they can run on NixOS.
-
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.
fix-playwright-webkit does not yet result in a working webkit MiniBrowser; PRs welcome.