Skip to content

Commit

Permalink
ImageMagick: fix Magick-config
Browse files Browse the repository at this point in the history
(cherry picked from commit 82a4c5e)
  • Loading branch information
vbgl authored and bjornfor committed Sep 9, 2017
1 parent 7eb1a42 commit a0e6a89
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkgs/applications/graphics/ImageMagick/default.nix
Expand Up @@ -84,7 +84,9 @@ stdenv.mkDerivation rec {
moveToOutput "bin/*-config" "$dev"
moveToOutput "lib/ImageMagick-*/config-Q16" "$dev" # includes configure params
for file in "$dev"/bin/*-config; do
substituteInPlace "$file" --replace pkg-config \
substituteInPlace "$file" --replace "${pkgconfig}/bin/pkg-config -config" \
${pkgconfig}/bin/pkg-config
substituteInPlace "$file" --replace ${pkgconfig}/bin/pkg-config \
"PKG_CONFIG_PATH='$dev/lib/pkgconfig' '${pkgconfig}/bin/pkg-config'"
done
'' + lib.optionalString (ghostscript != null) ''
Expand Down

0 comments on commit a0e6a89

Please sign in to comment.