Skip to content

Commit

Permalink
imagemagick: include configure.xml (NixOS#353169) (NixOS#353842)
Browse files Browse the repository at this point in the history
  • Loading branch information
FliegendeWurst authored Dec 19, 2024
2 parents dfdf1d4 + 0c61047 commit 6781216
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkgs/applications/graphics/ImageMagick/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,13 @@ stdenv.mkDerivation (finalAttrs: {

postInstall = ''
(cd "$dev/include" && ln -s ImageMagick* ImageMagick)
# Q16HDRI = 16 bit quantum depth with HDRI support, and is the default ImageMagick configuration
# If the default is changed, or the derivation is modified to use a different configuration
# this will need to be changed below.
moveToOutput "bin/*-config" "$dev"
moveToOutput "lib/ImageMagick-*/config-Q16HDRI" "$dev" # includes configure params
configDestination=($out/share/ImageMagick-*)
grep -v '/nix/store' $dev/lib/ImageMagick-*/config-Q16HDRI/configure.xml > $configDestination/configure.xml
for file in "$dev"/bin/*-config; do
substituteInPlace "$file" --replace pkg-config \
"PKG_CONFIG_PATH='$dev/lib/pkgconfig' '$(command -v $PKG_CONFIG)'"
Expand Down

0 comments on commit 6781216

Please sign in to comment.