From 10ba3c20a7bdd6021511338b1f01465cfc9b3bee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Sat, 27 Feb 2021 18:36:56 +0100 Subject: [PATCH] treewide: replace imagemagick7 with imagemagick --- pkgs/applications/office/paperless/default.nix | 4 ++-- pkgs/development/libraries/vapoursynth/default.nix | 9 +++------ pkgs/development/php-packages/imagick/default.nix | 4 ++-- pkgs/development/python-modules/Wand/default.nix | 6 +++--- pkgs/games/portmod/default.nix | 4 ++-- pkgs/tools/graphics/ldgallery/default.nix | 4 ++-- 6 files changed, 14 insertions(+), 17 deletions(-) diff --git a/pkgs/applications/office/paperless/default.nix b/pkgs/applications/office/paperless/default.nix index 499078611fcb..c2578696c688 100644 --- a/pkgs/applications/office/paperless/default.nix +++ b/pkgs/applications/office/paperless/default.nix @@ -5,7 +5,7 @@ , callPackage , python3 -, imagemagick7 +, imagemagick , ghostscript , optipng , tesseract @@ -65,7 +65,7 @@ let buildPhase = let # Paperless has explicit runtime checks that expect these binaries to be in PATH - extraBin = lib.makeBinPath [ imagemagick7 ghostscript optipng tesseract unpaper ]; + extraBin = lib.makeBinPath [ imagemagick ghostscript optipng tesseract unpaper ]; in '' ${python.interpreter} -m compileall $srcDir diff --git a/pkgs/development/libraries/vapoursynth/default.nix b/pkgs/development/libraries/vapoursynth/default.nix index 4265948c1950..8ef209fe8051 100644 --- a/pkgs/development/libraries/vapoursynth/default.nix +++ b/pkgs/development/libraries/vapoursynth/default.nix @@ -2,13 +2,10 @@ , runCommandCC, runCommand, vapoursynth, writeText, patchelf, buildEnv , zimg, libass, python3, libiconv , ApplicationServices -, ocrSupport ? false, tesseract ? null -, imwriSupport? true, imagemagick7 ? null +, ocrSupport ? false, tesseract +, imwriSupport ? true, imagemagick }: -assert ocrSupport -> tesseract != null; -assert imwriSupport -> imagemagick7 != null; - with lib; stdenv.mkDerivation rec { @@ -32,7 +29,7 @@ stdenv.mkDerivation rec { (python3.withPackages (ps: with ps; [ sphinx cython ])) ] ++ optionals stdenv.isDarwin [ libiconv ApplicationServices ] ++ optional ocrSupport tesseract - ++ optional imwriSupport imagemagick7; + ++ optional imwriSupport imagemagick; configureFlags = [ (optionalString (!ocrSupport) "--disable-ocr") diff --git a/pkgs/development/php-packages/imagick/default.nix b/pkgs/development/php-packages/imagick/default.nix index 9d2b8670efc3..ebff9b00f02c 100644 --- a/pkgs/development/php-packages/imagick/default.nix +++ b/pkgs/development/php-packages/imagick/default.nix @@ -1,4 +1,4 @@ -{ buildPecl, fetchpatch, lib, imagemagick7, pkg-config, pcre' }: +{ buildPecl, fetchpatch, lib, imagemagick, pkg-config, pcre' }: buildPecl { pname = "imagick"; @@ -19,7 +19,7 @@ buildPecl { }) ]; - configureFlags = [ "--with-imagick=${imagemagick7.dev}" ]; + configureFlags = [ "--with-imagick=${imagemagick.dev}" ]; nativeBuildInputs = [ pkg-config ]; buildInputs = [ pcre' ]; diff --git a/pkgs/development/python-modules/Wand/default.nix b/pkgs/development/python-modules/Wand/default.nix index e180f0cea332..054cce0ce520 100644 --- a/pkgs/development/python-modules/Wand/default.nix +++ b/pkgs/development/python-modules/Wand/default.nix @@ -1,7 +1,7 @@ { lib , buildPythonPackage , fetchPypi -, imagemagick7Big +, imagemagickBig }: buildPythonPackage rec { @@ -16,13 +16,13 @@ buildPythonPackage rec { postPatch = '' substituteInPlace wand/api.py --replace \ "magick_home = os.environ.get('MAGICK_HOME')" \ - "magick_home = '${imagemagick7Big}'" + "magick_home = '${imagemagickBig}'" ''; # tests not included with pypi release doCheck = false; - passthru.imagemagick = imagemagick7Big; + passthru.imagemagick = imagemagickBig; meta = with lib; { description = "Ctypes-based simple MagickWand API binding for Python"; diff --git a/pkgs/games/portmod/default.nix b/pkgs/games/portmod/default.nix index ef535991c23b..108d81815faa 100644 --- a/pkgs/games/portmod/default.nix +++ b/pkgs/games/portmod/default.nix @@ -1,5 +1,5 @@ { lib, callPackage, python3Packages, fetchFromGitLab, cacert, - rustPlatform, bubblewrap, git, perlPackages, imagemagick7, fetchurl, fetchzip, + rustPlatform, bubblewrap, git, perlPackages, imagemagick, fetchurl, fetchzip, jre, makeWrapper, tr-patcher, tes3cmd }: let @@ -29,7 +29,7 @@ let python3Packages.virtualenv tr-patcher tes3cmd - imagemagick7 + imagemagick ]; in diff --git a/pkgs/tools/graphics/ldgallery/default.nix b/pkgs/tools/graphics/ldgallery/default.nix index 77acafcb8125..6291dc9d6423 100644 --- a/pkgs/tools/graphics/ldgallery/default.nix +++ b/pkgs/tools/graphics/ldgallery/default.nix @@ -1,4 +1,4 @@ -{ lib, pkgs, makeWrapper, haskellPackages, haskell, pandoc, imagemagick7 }: +{ lib, pkgs, makeWrapper, haskellPackages, haskell, pandoc, imagemagick }: with lib; with haskell.lib; @@ -29,7 +29,7 @@ justStaticExecutables (overrideCabal ldgallery-compiler (oldAttrs: { # wrapper for runtime dependencies registration wrapProgram "$out/bin/ldgallery" \ - --prefix PATH : ${lib.makeBinPath [ imagemagick7 ]} + --prefix PATH : ${lib.makeBinPath [ imagemagick ]} # bash completion mkdir -p "$out/share/bash-completion/completions"