webkitgtk: Fix RiscV cross-compilation

This commit is contained in:
Jonas Heinrich
2025-10-12 19:15:50 +02:00
parent 3e6584df7c
commit 299041e0f5
@@ -76,6 +76,7 @@
withLibsecret ? true,
systemdSupport ? lib.meta.availableOn clangStdenv.hostPlatform systemd,
testers,
fetchpatch,
}:
# https://webkitgtk.org/2024/10/04/webkitgtk-2.46.html recommends building with clang.
@@ -109,6 +110,15 @@ clangStdenv.mkDerivation (finalAttrs: {
inherit (builtins) storeDir;
inherit (addDriverRunpath) driverLink;
})
# Workaround to fix cross-compilation for RiscV
# error: toB3Type was not declared in this scope
# See: https://bugs.webkit.org/show_bug.cgi?id=271371
(fetchpatch {
url = "https://salsa.debian.org/webkit-team/webkit/-/raw/debian/2.44.1-1/debian/patches/fix-ftbfs-riscv64.patch";
hash = "sha256-MgaSpXq9l6KCLQdQyel6bQFHG53l3GY277WePpYXdjA=";
name = "fix_ftbfs_riscv64.patch";
})
];
nativeBuildInputs = [