Commit 652b84a9 authored by Audrey Dutcher's avatar Audrey Dutcher
Browse files

vips: fix build on FreeBSD

This dependency doesn't work on Darwin and it doesn't work on FreeBSD
either.
parent 03b56411
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -61,7 +61,7 @@ stdenv.mkDerivation (finalAttrs: {
    "out"
    "man"
    "dev"
  ] ++ lib.optionals (!stdenv.hostPlatform.isDarwin) [ "devdoc" ];
  ] ++ lib.optionals (!stdenv.hostPlatform.isDarwin && !stdenv.hostPlatform.isFreeBSD) [ "devdoc" ];

  src = fetchFromGitHub {
    owner = "libvips";
@@ -83,7 +83,7 @@ stdenv.mkDerivation (finalAttrs: {
      ninja
      pkg-config
    ]
    ++ lib.optionals (!stdenv.hostPlatform.isDarwin) [
    ++ lib.optionals (!stdenv.hostPlatform.isDarwin && !stdenv.hostPlatform.isFreeBSD) [
      gtk-doc
    ];

@@ -134,7 +134,9 @@ stdenv.mkDerivation (finalAttrs: {
      (lib.mesonEnable "nifti" false)
      (lib.mesonEnable "introspection" withIntrospection)
    ]
    ++ lib.optional (!stdenv.hostPlatform.isDarwin) (lib.mesonBool "gtk_doc" true)
    ++ lib.optional (!stdenv.hostPlatform.isDarwin && !stdenv.hostPlatform.isFreeBSD) (
      lib.mesonBool "gtk_doc" true
    )
    ++ lib.optional (imagemagick == null) (lib.mesonEnable "magick" false);

  passthru = {