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>
This commit is contained in:
Brian McGillion 2025-06-21 10:22:59 +04:00
parent a1ce04cd2f
commit 3319e8281b
No known key found for this signature in database

View File

@ -195,6 +195,12 @@ let
--prefix LD_LIBRARY_PATH ":" $out/minibrowser-wpe/lib
'';
preFixup = ''
# Fix libxml2 breakage. See https://github.com/NixOS/nixpkgs/pull/396195#issuecomment-2881757108
mkdir -p "$out/lib"
ln -s "${lib.getLib libxml2}/lib/libxml2.so" "$out/lib/libxml2.so.2"
'';
};
webkit-darwin = fetchzip {
url = "https://playwright.azureedge.net/builds/webkit/${revision}/webkit-${suffix'}.zip";