vips: fix cross compilation on riscv
This commit is contained in:
@@ -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 = ''
|
||||
|
||||
Reference in New Issue
Block a user