Merge pull request #151184 from NickCao/librsvg

librsvg: fix cross compilation
This commit is contained in:
Artturi 2022-02-19 06:46:36 +02:00 committed by GitHub
commit 78022c5dd1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14,6 +14,7 @@
, libobjc
, rustPlatform
, rustc
, rust
, cargo
, gnome
, vala
@ -78,7 +79,8 @@ stdenv.mkDerivation rec {
"--enable-installed-tests"
"--enable-always-build-tests"
] ++ lib.optional stdenv.isDarwin "--disable-Bsymbolic";
] ++ lib.optional stdenv.isDarwin "--disable-Bsymbolic"
++ lib.optional (stdenv.buildPlatform != stdenv.hostPlatform) "RUST_TARGET=${rust.toRustTarget stdenv.hostPlatform}";
makeFlags = [
"installed_test_metadir=${placeholder "installedTests"}/share/installed-tests/RSVG"