diff options
Diffstat (limited to 'pkgs/development/web/playwright/driver.nix')
-rw-r--r-- | pkgs/development/web/playwright/driver.nix | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/pkgs/development/web/playwright/driver.nix b/pkgs/development/web/playwright/driver.nix index f05d5fd6c081..1058a61d48fb 100644 --- a/pkgs/development/web/playwright/driver.nix +++ b/pkgs/development/web/playwright/driver.nix @@ -217,12 +217,15 @@ let meta.platforms = lib.platforms.darwin; }; - browsers-linux = + browsers-linux = lib.makeOverridable ( { withChromium ? true, withFirefox ? true, withWebkit ? true, withFfmpeg ? true, + fontconfig_file ? makeFontsConf { + fontDirectories = [ ]; + }, }: let browsers = @@ -242,14 +245,20 @@ let # TODO check platform for revisionOverrides "${name}-${value.revision}" ( - callPackage ./${name}.nix { - inherit suffix system throwSystem; - inherit (value) revision; - } + callPackage (./. + "/${name}.nix") ( + { + inherit suffix system throwSystem; + inherit (value) revision; + } + // lib.optionalAttrs (name == "chromium") { + inherit fontconfig_file; + } + ) ) ) browsers ) - ); + ) + ); in { playwright-core = playwright-core; |