vips: fix cross compilation on riscv

This commit is contained in:
Jonas Heinrich
2026-02-14 12:56:27 +01:00
parent 67eae32c14
commit 1262a9bcf7
+7 -5
View File
@@ -46,6 +46,10 @@
withIntrospection ?
lib.meta.availableOn stdenv.hostPlatform gobject-introspection
&& stdenv.hostPlatform.emulatorAvailable buildPackages,
withDevDoc ?
!stdenv.hostPlatform.isDarwin
&& !stdenv.hostPlatform.isFreeBSD
&& !(stdenv.hostPlatform.isRiscV && stdenv.isLinux),
# passthru
testers,
@@ -62,7 +66,7 @@ stdenv.mkDerivation (finalAttrs: {
"man"
"dev"
]
++ lib.optionals (!stdenv.hostPlatform.isDarwin && !stdenv.hostPlatform.isFreeBSD) [ "devdoc" ];
++ lib.optionals withDevDoc [ "devdoc" ];
src = fetchFromGitHub {
owner = "libvips";
@@ -87,7 +91,7 @@ stdenv.mkDerivation (finalAttrs: {
ninja
pkg-config
]
++ lib.optionals (!stdenv.hostPlatform.isDarwin && !stdenv.hostPlatform.isFreeBSD) [
++ lib.optionals withDevDoc [
gi-docgen
];
@@ -135,9 +139,7 @@ stdenv.mkDerivation (finalAttrs: {
(lib.mesonEnable "spng" false) # we want to use libpng
(lib.mesonEnable "introspection" withIntrospection)
]
++ lib.optional (!stdenv.hostPlatform.isDarwin && !stdenv.hostPlatform.isFreeBSD) (
lib.mesonBool "docs" true
)
++ lib.optional withDevDoc (lib.mesonBool "docs" true)
++ lib.optional (imagemagick == null) (lib.mesonEnable "magick" false);
postFixup = ''