vips: Fix cross build for FreeBSD (#387409)

authored by Audrey Dutcher and committed by GitHub 014f8fba d084ce7b

+10 -3
+10 -3
pkgs/by-name/vi/vips/package.nix
··· 10 meson, 11 ninja, 12 pkg-config, 13 14 # Build inputs 15 ApplicationServices, ··· 42 openslide, 43 pango, 44 poppler, 45 46 # passthru 47 testers, ··· 57 "out" 58 "man" 59 "dev" 60 - ] ++ lib.optionals (!stdenv.hostPlatform.isDarwin) [ "devdoc" ]; 61 62 src = fetchFromGitHub { 63 owner = "libvips"; ··· 79 ninja 80 pkg-config 81 ] 82 - ++ lib.optionals (!stdenv.hostPlatform.isDarwin) [ 83 gtk-doc 84 ]; 85 ··· 128 [ 129 (lib.mesonEnable "pdfium" false) 130 (lib.mesonEnable "nifti" false) 131 ] 132 - ++ lib.optional (!stdenv.hostPlatform.isDarwin) (lib.mesonBool "gtk_doc" true) 133 ++ lib.optional (imagemagick == null) (lib.mesonEnable "magick" false); 134 135 passthru = {
··· 10 meson, 11 ninja, 12 pkg-config, 13 + buildPackages, 14 15 # Build inputs 16 ApplicationServices, ··· 43 openslide, 44 pango, 45 poppler, 46 + withIntrospection ? 47 + lib.meta.availableOn stdenv.hostPlatform gobject-introspection 48 + && stdenv.hostPlatform.emulatorAvailable buildPackages, 49 50 # passthru 51 testers, ··· 61 "out" 62 "man" 63 "dev" 64 + ] ++ lib.optionals (!stdenv.hostPlatform.isDarwin && !stdenv.hostPlatform.isFreeBSD) [ "devdoc" ]; 65 66 src = fetchFromGitHub { 67 owner = "libvips"; ··· 83 ninja 84 pkg-config 85 ] 86 + ++ lib.optionals (!stdenv.hostPlatform.isDarwin && !stdenv.hostPlatform.isFreeBSD) [ 87 gtk-doc 88 ]; 89 ··· 132 [ 133 (lib.mesonEnable "pdfium" false) 134 (lib.mesonEnable "nifti" false) 135 + (lib.mesonEnable "introspection" withIntrospection) 136 ] 137 + ++ lib.optional (!stdenv.hostPlatform.isDarwin && !stdenv.hostPlatform.isFreeBSD) ( 138 + lib.mesonBool "gtk_doc" true 139 + ) 140 ++ lib.optional (imagemagick == null) (lib.mesonEnable "magick" false); 141 142 passthru = {