webkitgtk: Fix RiscV cross-compilation (#450961)
This commit is contained in:
@@ -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 = [
|
||||
|
||||
Reference in New Issue
Block a user