playwright: fix darwin tests
This commit is contained in:
parent
3fb8eedc45
commit
b24aacfd01
@ -83,22 +83,19 @@ let
|
|||||||
pname = "playwright-browsers";
|
pname = "playwright-browsers";
|
||||||
version = driverVersion;
|
version = driverVersion;
|
||||||
|
|
||||||
src = runCommand "playwright-browsers-base" {
|
dontUnpack = true;
|
||||||
outputHashMode = "recursive";
|
|
||||||
outputHashAlgo = "sha256";
|
installPhase = ''
|
||||||
outputHash = {
|
runHook preInstall
|
||||||
x86_64-darwin = "0z2kww4iby1izkwn6z2ai94y87bkjvwak8awdmjm8sgg00pa9l1a";
|
|
||||||
}.${system} or throwSystem;
|
|
||||||
} ''
|
|
||||||
export PLAYWRIGHT_BROWSERS_PATH=$out
|
export PLAYWRIGHT_BROWSERS_PATH=$out
|
||||||
${driver}/bin/playwright install
|
${driver}/bin/playwright install
|
||||||
rm -r $out/.links
|
rm -r $out/.links
|
||||||
|
|
||||||
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
|
||||||
installPhase = ''
|
meta.platforms = lib.platforms.darwin;
|
||||||
mkdir $out
|
|
||||||
cp -r * $out/
|
|
||||||
'';
|
|
||||||
};
|
};
|
||||||
|
|
||||||
browsers-linux = { withFirefox ? true, withChromium ? true }: let
|
browsers-linux = { withFirefox ? true, withChromium ? true }: let
|
||||||
|
Loading…
Reference in New Issue
Block a user