python3Packages.skia-pathops: fix loongarch64-linux build

This commit is contained in:
Weijia Wang
2026-08-22 11:00:15 +02:00
parent 110b78f86e
commit f5edd502a2

View File

@@ -2,6 +2,7 @@
lib,
stdenv,
buildPythonPackage,
fetchpatch2,
cython,
isPyPy,
ninja,
@@ -25,6 +26,15 @@ buildPythonPackage rec {
hash = "sha256-S22EWfb0ppKCyyb8oMK7CzIcxYqb+cxleaUqOR7cAxk=";
};
patches = lib.optionals stdenv.hostPlatform.isLoongArch64 [
(fetchpatch2 {
url = "https://salsa.debian.org/fonts-team/libskia/-/raw/6574ca599eab076a9cd5b8667f81aef0f67b3eeb/debian/patches/loong-build";
stripLen = 1;
extraPrefix = "src/cpp/skia-builder/skia/";
hash = "sha256-pKbWDYfZKUTv9ADdCl5sVPFfWiUCUmS8MXSw3eZhqMI=";
})
];
postPatch = ''
substituteInPlace setup.py \
--replace "build_cmd = [sys.executable, build_skia_py, build_dir]" \