Commit Graph

58 Commits

Author SHA1 Message Date
K900
e264b7c63a playwright: remove hardcoded mesa dependency
Things that rely on this should use llvmpipeHook instead.
2026-05-10 10:42:25 +03:00
Konstantin Alekseev
7cc8a6b08a playwright: 1.58.2 -> 1.59.1 2026-04-30 08:28:50 +03:00
Konstantin Alekseev
7f6a6fb1c7 playwright: fix WebKit browser on linux
- Replace libxml2 symlink workaround with libxml2_13 which provides
  the libxml2.so.2 soname the bundled WebKit expects
- Set Mesa as EGL vendor fallback when no system EGL is configured,
  enabling WPE WebKit's headless rendering
- Patch out ldconfig-based dlopen check for WebKit which doesn't
   work under Nix (libraries are provided via rpath)
2026-04-16 13:05:14 +03:00
Konstantin Alekseev
f445a8f8b9 playwright: use binaries for ubuntu24.04 2026-03-15 20:00:55 +00:00
Konstantin Alekseev
9cded17205 playwright: 1.57.0 -> 1.58.2 2026-03-15 20:00:55 +00:00
Konstantin Alekseev
cf5966c180 playwright: move update script into core package 2026-03-15 20:00:55 +00:00
phaer
8f481210b7 playwright-driver: expose selectBrowsers for custom browser selection
Expose the underlying browsers function as `selectBrowsers` passthru,
allowing users to create custom browser sets. Note: all browsers are
enabled by default.

Example usage:
  playwright-driver.selectBrowsers {
    withChromiumHeadlessShell = true;
    withChromium = false;
    withFirefox = false;
    withWebkit = false;
    withFfmpeg = false;
  }
2026-02-24 14:54:16 +01:00
K900
3c4102eef4 Merge remote-tracking branch 'origin/staging-next' into staging 2026-02-06 15:58:23 +03:00
quantenzitrone
43cdce2c39 various: rename references from libXrandr to libxrandr
this shouldn't create any rebuilds
2026-02-06 00:29:06 +01:00
quantenzitrone
543572a942 various: rename references from libXfixes to libxfixes
this shouldn't create any rebuilds
2026-02-06 00:25:40 +01:00
quantenzitrone
e733896f5a various: rename references from libXdamage to libxdamage
this shouldn't create any rebuilds
2026-02-06 00:24:46 +01:00
quantenzitrone
a8971fc387 various: rename references from libXcomposite to libxcomposite
this shouldn't create any rebuilds
2026-02-06 00:24:45 +01:00
Martin Weinelt
3b6fe22596 playwright: provide expat for chromium-headless-shell 2026-02-01 17:41:00 +01:00
quantenzitrone
7d8132a92c treewide: remove references to the xorg namespace in pkgs (automated)
this creates some eval errors that will be fixed in the next commit

done with the following script:

```fish
\#!/usr/bin/env fish

set packagesjson (nix eval --impure --json --expr '
let
  lib = import ./lib;
in
import pkgs/servers/x11/xorg/default.nix (lib.mapAttrs (
  name: _:
  if name == "lib" then
    lib
  else if name == "config" then
    { allowAliases = false; }
  else
    name
) (__functionArgs (import pkgs/servers/x11/xorg/default.nix))) { }
' | jq)

set one (grep '^    [A-Za-z0-9_-]*$' pkgs/servers/x11/xorg/default.nix | string trim | string replace -r '$' Z | sort | string sub -e -1)
set two (grep '^  [A-Za-z0-9_-]* = [A-Za-z0-9_-]*;$' pkgs/servers/x11/xorg/default.nix | cut -d= -f1 | string trim | string replace -r '$' Z | sort | string sub -e -1)

for arg in $one $two
    set oname $arg
    set nname (echo $packagesjson | jq -r .$oname)

    if test $nname = null
        echo (set_color red)warn:(set_color normal) unknown package xorg.$oname >&2
        continue
    end

    echo $oname "->" $nname

    # replace basic xorg.$name references
    for file in (rg -F "xorg.$oname" --files-with-matches pkgs)
        # special cases
        sd -F "$oname = xorg.$oname;" "$nname = $nname;" $file

        # replace
        sd -F "xorg.$oname" "$nname" $file

        # fixup function arguments

        # prevent duplicate function args
        if grep -E " ($oname|$nname),\$" $file >/dev/null
            continue
        end

        if grep 'xorg\..' $file >/dev/null # case1: there is more so we can't just remove the function arg

            if grep ' xorg,$' $file >/dev/null
                sd ' xorg,$' " xorg,
                $nname," $file

            else if grep ' xorg ? .*,$' $file >/dev/null
                sd 'xorg( ? .*),$' "xorg\$1,
                $nname," $file

            else
                sd -F 'xorg,' "$nname,
                xorg," $file
            end

        else # case there is no more xorg..* so we can just replace the function arg
            sd 'xorg(| ? .*),.*$' "$nname," $file
        end
    end
end

nix fmt
```
2026-01-25 22:28:09 +01:00
Sandro
145b67bd0b playwright: 1.56.0 -> 1.57.0 (#469991) 2026-01-03 02:22:05 +00:00
Simon Gardling
cfb630ae41 playwright: 1.56.0 -> 1.57.0 2025-12-24 02:38:11 -05:00
K900
b4bb65b76e playwright: don't copy files that don't exist 2025-12-18 13:49:23 +03:00
Gaétan Lepage
95506c9ea1 playwright: 1.54.0 -> 1.56.1 (#460313) 2025-12-13 13:39:57 +00:00
Theodor Tonum
45e0a68ef8 playwright: 1.55.0 -> 1.56.1 2025-12-09 14:51:12 +01:00
Theodor Tonum
70bade1263 playwright: 1.54.0 -> 1.55.0 2025-12-09 14:51:12 +01:00
Marie Ramlow
9837635bb5 playwright: remove myself from maintainers 2025-12-05 09:47:23 +01:00
Luna Nova
26d39038dc playwright-webkit: apply CMake 4 compat patch to overriden libjxl
This is a backport of the same change that was applied in 166e159ad7
2025-10-01 17:00:12 -07:00
Peder Bergebakken Sundt
75feaf46c2 playwright: 1.53.1 -> 1.54.1 (#427631) 2025-07-24 19:17:57 +02:00
Wolfgang Walther
5a0711127c treewide: run nixfmt 1.0.0 2025-07-24 13:55:40 +02:00
Konstantin Alekseev
ae1aa6751c playwright: 1.53.1 -> 1.54.1 2025-07-23 06:06:27 +03:00
Konstantin Alekseev
57a191e6f8 playwright-driver: fix webkit build
fixes #425505
2025-07-23 05:02:51 +03:00
Konstantin Alekseev
2d02dc9fc1 playwright: 1.52.0 -> 1.53.1 2025-06-29 09:22:21 +03:00
Brian McGillion
3319e8281b playwright-webkit: Fix broken build
> auto-patchelf: 2 dependencies could not be satisfied
       > error: auto-patchelf could not satisfy dependency libxml2.so.2 wanted by /nix/store/bz0scnv4x47f9piavdj5l6ww60i60mww-playwright-webkit/minibrowser-wpe/lib/libWPEWebKit-2.0.so.1.6.0
       > error: auto-patchelf could not satisfy dependency libxml2.so.2 wanted by /nix/store/bz0scnv4x47f9piavdj5l6ww60i60mww-playwright-webkit/minibrowser-wpe/bin/.MiniBrowser-wrapped
       > auto-patchelf failed to find all the required dependencies.
       > Add the missing dependencies to --libs or use `--ignore-missing="foo.so.1 bar.so etc.so"`.
       > For full logs, run:
       >   nix log
       >   /nix/store/fqnh2989sp0csn98k8kivrkiq6b4l556-playwright-webkit.drv

Signed-off-by: Brian McGillion <bmg.avoin@gmail.com>
2025-06-21 10:22:59 +04:00
Gaetan Lepage
cc423552db playwright: fix hashes 2025-05-20 18:16:03 +02:00
Paul Haerle
a13ba4108f playwright-driver: use upstream chromium build (#383876) 2025-05-19 22:53:15 +02:00
Marie Ramlow
9424a47a65 playwright: add myself as a maintainer 2025-05-09 12:18:38 +02:00
Marie Ramlow
18f34890d2 playwright-driver: use upstream chromium build
Use the exact chromium version upstream uses for playwright, to prevent breaking from browser updates in nixpkgs.
2025-05-09 12:18:35 +02:00
Konstantin Alekseev
e462a75ad4 playwright: 1.50.0 -> 1.52.0 2025-05-03 20:43:30 +02:00
Vladimír Čunát
a9ab0b117a python3Packages.playwright: nixfmt 2025-04-12 21:36:10 +02:00
Vladimír Čunát
8feef74f9b python3Packages.playwright: don't apply libavif patches
Taking a custom libavif commit and applying patches
meant for another version - that was just bound to break.
https://hydra.nixos.org/build/294635352/nixlog/2/tail
2025-04-12 17:36:25 +02:00
Winter
a19cd4ffb1 Revert "treewide: replace rev with tag"
This reverts commit 65a333600d.

This wasn't tested for correctness with something like fodwatch [0],
and should not have been (self-)merged so quickly, especially without
further review.

It also resulted in the breakage of at least one package [1] (and that's
the one we know of and was caught).

A few packages that were updated in between this commit and this revert
were not reverted back to using `rev`, but other than that, this is a
1:1 revert.

[0]: https://codeberg.org/raphaelr/fodwatch
[1]: https://github.com/NixOS/nixpkgs/pull/396904 / 758551e458
2025-04-08 02:57:25 -04:00
Pol Dellaiera
65a333600d treewide: replace rev with tag 2025-04-07 16:57:22 +02:00
K900
95f49597d7 Revert "playwright-test: Add PLAYWRIGHT_BROWSERS_PATH to build environment" 2025-02-14 11:04:50 +03:00
Sefa Eyeoglu
87b95e65c2 playwright-test: Add PLAYWRIGHT_BROWSERS_PATH to build environment (#368391) 2025-02-12 11:07:49 +01:00
Konstantin Alekseev
a09e851dc4 playwright: 1.48.1 -> 1.50.1 2025-02-07 12:20:02 +01:00
Konstantin Alekseev
aeba1dd05a playwright: 1.47.0 -> 1.48.1 2025-01-22 23:02:31 +02:00
Konstantin Alekseev
9585410038 playwright: download browsers for Mac OS 2025-01-22 23:00:39 +02:00
WxNzEMof
682e3b71a0 playwright-test: Add PLAYWRIGHT_BROWSERS_PATH to build environment
This allows writing self-contained node scripts (using a nix-shell
shebang), without requiring a separate shell.nix which sets
PLAYWRIGHT_BROWSERS_PATH to pkgs.playwright-driver.browsers.
2024-12-27 10:15:21 +00:00
K900
d209d800b7 treewide: mesa -> libgbm (where appropriate)
This will likely break things, but anything broken should be easily noticeable.
2024-12-05 12:37:39 +03:00
Philip Taron
72c938e77a playwright-driver: fix eval on Nix 2.3 2024-10-07 08:55:30 -07:00
Matthieu C.
174479d040 playwright-driver.browsers: expose raw fontconfig file 2024-09-28 22:35:28 +02:00
phaer
67b5c21b58 playwright: Use pre-built browsers, update them...
via update.sh. This lets us support playwright with browsers
other than chromium on linux. Building them from source would
be one step further.
2024-09-20 14:52:35 +02:00
R. Ryantm
5c59c2a2cb python312Packages.playwright: 1.46.0 -> 1.47.0 2024-09-14 00:13:43 +00:00
Konstantin Alekseev
4519015fd0 playwright: build from source
playwright-driver: 1.40.0 -> 1.46.0
python3Packages.playwright: 1.44.0 -> 1.46.0
2024-08-24 17:07:53 +03:00
Konstantin Alekseev
46da647378 playwright: apply nixfmt 2024-08-24 11:00:22 +03:00