I found a solution in Replace npm deps with nix deps - #3 by tobiasBora via
postInstall = ''
rm -rf node_modules/playwright
ln -s ${playwright-driver} node_modules/playwright
cp -r node_modules $out/lib
'';
note sure if it is the recommended solution but it seems to work without heavy patches.