From adce3051b95468c5ad88ce7d72128cf437f43e1f Mon Sep 17 00:00:00 2001 From: Eric Sagnes Date: Wed, 2 Sep 2015 21:26:03 +0900 Subject: [PATCH] imagemagick: add pkgconfig as a runtime dependency --- pkgs/applications/graphics/ImageMagick/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/applications/graphics/ImageMagick/default.nix b/pkgs/applications/graphics/ImageMagick/default.nix index 683e2721d876e..9a1ed5e60156e 100644 --- a/pkgs/applications/graphics/ImageMagick/default.nix +++ b/pkgs/applications/graphics/ImageMagick/default.nix @@ -40,6 +40,12 @@ stdenv.mkDerivation rec { openexr libpng librsvg libtiff libxml2 ]; + postFixup = '' + for file in $out/bin/Magick++-config $out/bin/Magick-config $out/bin/MagickCore-config $out/bin/MagickWand-config $out/bin/Wand-config; do + substituteInPlace $file --replace pkg-config ${pkgconfig}/bin/pkg-config + done + ''; + propagatedBuildInputs = [ bzip2 freetype libjpeg libX11 libXext libXt lcms2 ];