imagemagick: fix cross compile (#474586)
This commit is contained in:
@@ -174,7 +174,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
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 \
|
||||
substituteInPlace "$file" --replace-fail "$PKG_CONFIG" \
|
||||
"PKG_CONFIG_PATH='$dev/lib/pkgconfig' '$(command -v $PKG_CONFIG)'"
|
||||
done
|
||||
''
|
||||
|
||||
@@ -1,21 +1,23 @@
|
||||
{
|
||||
buildPecl,
|
||||
fetchpatch,
|
||||
lib,
|
||||
imagemagick,
|
||||
pkg-config,
|
||||
pcre2,
|
||||
php,
|
||||
}:
|
||||
|
||||
buildPecl {
|
||||
pname = "imagick";
|
||||
|
||||
version = "3.8.1";
|
||||
sha256 = "sha256-OjWHwKUkwX0NrZZzoWC5DNd26DaDhHThc7VJ7YZDUu4=";
|
||||
hash = "sha256-OjWHwKUkwX0NrZZzoWC5DNd26DaDhHThc7VJ7YZDUu4=";
|
||||
|
||||
configureFlags = [ "--with-imagick=${imagemagick.dev}" ];
|
||||
|
||||
depsBuildBuild = [ pkg-config ];
|
||||
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
|
||||
buildInputs = [ pcre2 ];
|
||||
|
||||
meta = {
|
||||
|
||||
Reference in New Issue
Block a user