about summary refs log tree commit diff
path: root/pkgs/development/web
diff options
context:
space:
mode:
authorphaer <hello@phaer.org>2023-12-15 15:33:26 +0100
committerphaer <hello@phaer.org>2023-12-15 15:33:26 +0100
commitbb74ebb72bb621a03313107f1d32401493b3c438 (patch)
tree12ed8f3c46c9613f50810e397367853284a0cca5 /pkgs/development/web
parent02357adddd0889782362d999628de9d309d202dc (diff)
downloadnixlib-bb74ebb72bb621a03313107f1d32401493b3c438.tar
nixlib-bb74ebb72bb621a03313107f1d32401493b3c438.tar.gz
nixlib-bb74ebb72bb621a03313107f1d32401493b3c438.tar.bz2
nixlib-bb74ebb72bb621a03313107f1d32401493b3c438.tar.lz
nixlib-bb74ebb72bb621a03313107f1d32401493b3c438.tar.xz
nixlib-bb74ebb72bb621a03313107f1d32401493b3c438.tar.zst
nixlib-bb74ebb72bb621a03313107f1d32401493b3c438.zip
playwright-driver: fix browser download on darwin
We are currently using an impure method to build a derivation for
playwrights browsers on darwin: We just call `playwright install`
during build-time. But this recently began to fail, with an error that
the azure certificate would be self-signed, while it was not. This is
presumably due to https://github.com/NixOS/nixpkgs/pull/257513
where we started to use the systems CA store for nodejs instead of
the bundled one, so we add cacert to fix it.

Maybe the whole impure method of downloading browsers on darwin
should be reconsidered in favor of following the same approach as
on Linux, but that would probably have the drawback that we'd loose
safari as one of the browsers.
Diffstat (limited to 'pkgs/development/web')
-rw-r--r--pkgs/development/web/playwright/driver.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/development/web/playwright/driver.nix b/pkgs/development/web/playwright/driver.nix
index 2ced22b559a0..7f755eda21ce 100644
--- a/pkgs/development/web/playwright/driver.nix
+++ b/pkgs/development/web/playwright/driver.nix
@@ -11,6 +11,7 @@
 , makeWrapper
 , runCommand
 , unzip
+, cacert
 }:
 let
   inherit (stdenv.hostPlatform) system;
@@ -86,6 +87,10 @@ let
 
     dontUnpack = true;
 
+    nativeBuildInputs = [
+      cacert
+    ];
+
     installPhase = ''
       runHook preInstall