imagemagick: remove build coreutils from cross-compiled output

This commit is contained in:
Colin 2024-02-27 23:16:49 +00:00
parent 0421b8d99c
commit abc8ebc206

View File

@ -25,6 +25,7 @@
, libwebpSupport ? !stdenv.hostPlatform.isMinGW, libwebp
, libheifSupport ? true, libheif
, potrace
, coreutils
, curl
, ApplicationServices
, Foundation
@ -64,6 +65,10 @@ stdenv.mkDerivation (finalAttrs: {
enableParallelBuilding = true;
configureFlags = [
# specify delegates explicitly otherwise `convert` will invoke the build
# coreutils for filetypes it doesn't natively support.
"MVDelegate=${lib.getExe' coreutils "mv"}"
"RMDelegate=${lib.getExe' coreutils "rm"}"
"--with-frozenpaths"
(lib.withFeatureAs (arch != null) "gcc-arch" arch)
(lib.withFeature librsvgSupport "rsvg")