Commit c8b076cb authored by sternenseemann's avatar sternenseemann
Browse files

libwebp: set meta.pkgConfigModules

Using the package from the pkgs fixpoint instead of
finalAttrs.finalPackage to mirror the other tests which
also (indirectly) use pkgs.libwebp. Slight disadvantage of this is that
it's not possible to test overridden variants of libwebp this way.
parent 7cdf9a98
Loading
Loading
Loading
Loading
+13 −0
Original line number Diff line number Diff line
@@ -29,6 +29,8 @@
  opencv,
  python3,
  vips,
  testers,
  libwebp,
}:

stdenv.mkDerivation rec {
@@ -79,6 +81,7 @@ stdenv.mkDerivation rec {
      ;
    inherit (python3.pkgs) pillow imread;
    haskell-webp = haskellPackages.webp;
    pkg-config = testers.hasPkgConfigModules { package = libwebp; };
  };

  meta = with lib; {
@@ -87,5 +90,15 @@ stdenv.mkDerivation rec {
    license = licenses.bsd3;
    platforms = platforms.all;
    maintainers = with maintainers; [ ajs124 ];
    pkgConfigModules = [
      # configure_pkg_config() calls for these are unconditional
      "libwebp"
      "libwebpdecoder"
      "libwebpdemux"
      "libsharpyuv"
    ]
    ++ lib.optionals libwebpmuxSupport [
      "libwebpmux"
    ];
  };
}