playwright.browsers: fix build

This commit is contained in:
Sandro Jäckel 2022-10-21 20:09:35 +02:00
parent 71c5816834
commit 177e532253
No known key found for this signature in database
GPG key ID: 3AF5A43A3EECC2E5

View file

@ -114,7 +114,7 @@ let
jq
];
} (''
BROWSERS_JSON=${driver}/share/playwright-driver/package/browsers.json
BROWSERS_JSON=${driver}/package/browsers.json
'' + lib.optionalString withChromium ''
CHROMIUM_REVISION=$(jq -r '.browsers[] | select(.name == "chromium").revision' $BROWSERS_JSON)
mkdir -p $out/chromium-$CHROMIUM_REVISION/chrome-linux