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