472aeafc57
GitOrigin-RevId: c31898adf5a8ed202ce5bea9f347b1c6871f32d1
24 lines
617 B
Nix
24 lines
617 B
Nix
{
|
|
runCommand,
|
|
makeWrapper,
|
|
fontconfig_file,
|
|
chromium,
|
|
...
|
|
}:
|
|
runCommand "playwright-chromium"
|
|
{
|
|
nativeBuildInputs = [
|
|
makeWrapper
|
|
];
|
|
}
|
|
''
|
|
mkdir -p $out/chrome-linux
|
|
|
|
# See here for the Chrome options:
|
|
# https://github.com/NixOS/nixpkgs/issues/136207#issuecomment-908637738
|
|
# We add --disable-gpu to be able to run in gpu-less environments such
|
|
# as headless nixos test vms.
|
|
makeWrapper ${chromium}/bin/chromium $out/chrome-linux/chrome \
|
|
--set-default SSL_CERT_FILE /etc/ssl/certs/ca-bundle.crt \
|
|
--set-default FONTCONFIG_FILE ${fontconfig_file}
|
|
''
|