diff options
author | Tanish2002 <tanishkhare@gmail.com> | 2022-02-26 01:39:42 +0530 |
---|---|---|
committer | Kerstin <kerstin@erictapen.name> | 2022-02-26 01:19:37 +0100 |
commit | 5a6b995479d4c57e37cb28f1f565db9f76b0df7c (patch) | |
tree | 92524ff0de95a1c18429797d19af2c9ebc820c25 /pkgs/applications/graphics/ImageMagick | |
parent | d9b6b8a84934aaf5b7261abcdb98f7786e32a0e8 (diff) | |
download | nixpkgs-5a6b995479d4c57e37cb28f1f565db9f76b0df7c.tar nixpkgs-5a6b995479d4c57e37cb28f1f565db9f76b0df7c.tar.gz nixpkgs-5a6b995479d4c57e37cb28f1f565db9f76b0df7c.tar.bz2 nixpkgs-5a6b995479d4c57e37cb28f1f565db9f76b0df7c.tar.lz nixpkgs-5a6b995479d4c57e37cb28f1f565db9f76b0df7c.tar.xz nixpkgs-5a6b995479d4c57e37cb28f1f565db9f76b0df7c.tar.zst nixpkgs-5a6b995479d4c57e37cb28f1f565db9f76b0df7c.zip |
imagemagick: add curl dependency
Diffstat (limited to 'pkgs/applications/graphics/ImageMagick')
-rw-r--r-- | pkgs/applications/graphics/ImageMagick/7.0.nix | 63 |
1 files changed, 51 insertions, 12 deletions
diff --git a/pkgs/applications/graphics/ImageMagick/7.0.nix b/pkgs/applications/graphics/ImageMagick/7.0.nix index f7780e4fd60..7a8cae9bf81 100644 --- a/pkgs/applications/graphics/ImageMagick/7.0.nix +++ b/pkgs/applications/graphics/ImageMagick/7.0.nix @@ -1,9 +1,36 @@ -{ lib, stdenv, fetchFromGitHub, pkg-config, libtool -, bzip2, zlib, libX11, libXext, libXt, fontconfig, freetype, ghostscript, libjpeg, djvulibre -, lcms2, openexr, libjxl, libpng, liblqr1, libraw, librsvg, libtiff, libxml2, openjpeg, libwebp, libheif -, potrace, ApplicationServices +{ lib +, stdenv +, fetchFromGitHub +, pkg-config +, libtool +, bzip2 +, zlib +, libX11 +, libXext +, libXt +, fontconfig +, freetype +, ghostscript +, libjpeg +, djvulibre +, lcms2 +, openexr +, libjxl +, libpng +, liblqr1 +, libraw +, librsvg +, libtiff +, libxml2 +, openjpeg +, libwebp +, libheif +, potrace +, curl +, ApplicationServices , Foundation -, testVersion, imagemagick +, testVersion +, imagemagick }: let @@ -11,7 +38,7 @@ let if stdenv.hostPlatform.system == "i686-linux" then "i686" else if stdenv.hostPlatform.system == "x86_64-linux" || stdenv.hostPlatform.system == "x86_64-darwin" then "x86-64" else if stdenv.hostPlatform.system == "armv7l-linux" then "armv7l" - else if stdenv.hostPlatform.system == "aarch64-linux" || stdenv.hostPlatform.system == "aarch64-darwin" then "aarch64" + else if stdenv.hostPlatform.system == "aarch64-linux" || stdenv.hostPlatform.system == "aarch64-darwin" then "aarch64" else if stdenv.hostPlatform.system == "powerpc64le-linux" then "ppc64le" else null; in @@ -41,18 +68,30 @@ stdenv.mkDerivation rec { # let's disable it for now to unbreak the imagemagick build. ++ lib.optional (libjxl != null && !stdenv.isAarch64) "--with-jxl" ++ lib.optionals (ghostscript != null) - [ "--with-gs-font-dir=${ghostscript}/share/ghostscript/fonts" + [ + "--with-gs-font-dir=${ghostscript}/share/ghostscript/fonts" "--with-gslib" ] ++ lib.optionals stdenv.hostPlatform.isMinGW [ "--enable-static" "--disable-shared" ] # due to libxml2 being without DLLs ATM - ; + ; nativeBuildInputs = [ pkg-config libtool ]; buildInputs = - [ zlib fontconfig freetype ghostscript potrace - liblqr1 libpng libraw libtiff libxml2 libheif djvulibre + [ + zlib + fontconfig + freetype + ghostscript + potrace + liblqr1 + libpng + libraw + libtiff + libxml2 + libheif + djvulibre ] # libjxl is broken on aarch64 (see meta.broken in libjxl) for now, # let's disable it for now to unbreak the imagemagick build. @@ -66,10 +105,10 @@ stdenv.mkDerivation rec { ]; propagatedBuildInputs = - [ bzip2 freetype libjpeg lcms2 ] + [ bzip2 freetype libjpeg lcms2 curl ] ++ lib.optionals (!stdenv.hostPlatform.isMinGW) [ libX11 libXext libXt libwebp ] - ; + ; postInstall = '' (cd "$dev/include" && ln -s ImageMagick* ImageMagick) |