Change:
else if stdenv.hostPlatform.system == "aarch64-linux" then "aarch64" else if stdenv.hostPlatform.system == "powerpc64le-linux" then "ppc64le" else throw "ImageMagick is not supported on this platform."; <del> cfg = { version = "6.9.11-29"; sha256 = "0adjdpi91ya0g3v7y503n95833m25aibkim5swg5lnwjrba407hg"; patches = []; } # Freeze version on mingw so we don't need to port the patch too often. # FIXME: This version has multiple security vulnerabilities // lib.optionalAttrs (stdenv.hostPlatform.isMinGW) { version = "6.9.2-0"; sha256 = "17ir8bw1j7g7srqmsz3rx780sgnc21zfn0kwyj78iazrywldx8h7"; patches = [(fetchpatch { name = "mingw-build.patch"; url = "https://raw.githubusercontent.com/Alexpux/MINGW-packages/" + "01ca03b2a4ef/mingw-w64-imagemagick/002-build-fixes.patch"; sha256 = "1pypszlcx2sf7wfi4p37w1y58ck2r8cd5b2wrrwr9rh87p7fy1c0"; })]; }; </del> in <del> stdenv.mkDerivation { </del> <ins> stdenv.mkDerivation rec { </ins> pname = "imagemagick"; <del> inherit (cfg) version; </del> <ins> version = "6.9.11-60"; </ins> src = fetchFromGitHub { owner = "ImageMagick"; repo = "ImageMagick6"; <del> rev = cfg.version; inherit (cfg) sha256; </del> <ins> rev = version; sha256 = "12810882a0kf4zlgyi290z9bjs921m05njbljkjfw6s1hf0mncl0"; </ins> }; <del> patches = cfg.patches; </del> outputs = [ "out" "dev" "doc" ]; # bin/ isn't really big outputMan = "out"; # it's tiny

Discussion:
, CVSSv3=7.8 (nixos-unstable) CVSSv3=7.8 (nixos-unstable) CVSSv3=6.1 (nixos-unstable) CVSSv3=5.5 (nixos-unstable) CVSSv3=5.5 (nixos-unstable) CVSSv3=5.5 (nixos-unstable) CVSSv3=5.5 (nixos-unstable) CVSSv3=5.5 (nixos-unstable) CVSSv3=5.5 (nixos-unstable) CVSSv3=5.5 (nixos-unstable) CVSSv3=5.5 (nixos-unstable) CVSSv3=5.5 (nixos-unstable) CVSSv3=5.5 (nixos-unstable) CVSSv3=5.5 (nixos-unstable) CVSSv3=3.3 (nixos-unstable) CVSSv3=3.3 (nixos-unstable) CVSSv3=3.3 (nixos-unstable) CVSSv3=3.3 (nixos-unstable) CVSSv3=3.3 (nixos-unstable) CVSSv3=3.3 (nixos-unstable) CVSSv3=3.3 (nixos-unstable) CVSSv3=3.3 (nixos-unstable) CVSSv3=3.3 (nixos-unstable) CVSSv3=3.3 (nixos-unstable) CVSSv3=3.3 (nixos-unstable) CVSSv3=3.3 (nixos-unstable) CVSSv3=3.3 (nixos-unstable) CVSSv3=3.3 (nixos-unstable) CVSSv3=3.3 (nixos-unstable) CVSSv3=3.3 (nixos-unstable) CVSSv3=3.3 (nixos-unstable) Scanned versions: nixos-unstable: .
See also:

CVSSv3=9.8 (nixos-unstable) CVSSv3=9.8 (nixos-unstable) CVSSv3=9.8 (nixos-unstable) CVSSv3=9.1 (nixos-unstable) CVSSv3=8.8 (nixos-unstable) CVSSv3=8.8 (nixos-unstable) CVSSv3=8.8 (nixos-unstable) CVSSv3=8.8 (nixos-unstable) CVSSv3=8.8 (nixos-unstable) CVSSv3=7.8 (nixos-unstable) CVSSv3=7.8 (nixos-unstable) CVSSv3=7.8 (nixos-unstable) CVSSv3=7.8 (nixos-unstable) CVSSv3=7.8 (nixos-unstable) CVSSv3=7.5 (nixos-unstable) CVSSv3=7.5 (nixos-unstable) CVSSv3=7.5 (nixos-unstable) CVSSv3=7.5 (nixos-unstable) CVSSv3=7.5 (nixos-unstable) CVSSv3=7.5 (nixos-unstable) CVSSv3=7.5 (nixos-unstable) CVSSv3=7.5 (nixos-unstable) CVSSv3=7.1 (nixos-unstable) CVSSv3=6.5 (nixos-unstable) CVSSv3=6.5 (nixos-unstable) CVSSv3=6.5 (nixos-unstable) CVSSv3=6.5 (nixos-unstable) CVSSv3=6.5 (nixos-unstable) CVSSv3=6.5 (nixos-unstable) CVSSv3=6.5 (nixos-unstable) CVSSv3=6.5 (nixos-unstable) CVSSv3=6.5 (nixos-unstable) CVSSv3=6.

5 (nixos-unstable) CVSSv3=6.5 (nixos-unstable) CVSSv3=6.5 (nixos-unstable) CVSSv3=6.5 (nixos-unstable) CVSSv3=6.5 (nixos-unstable) CVSSv3=6.5 (nixos-unstable) CVSSv3=6.5 (nixos-unstable) CVSSv3=6.5 (nixos-unstable) CVSSv3=6.5 (nixos-unstable) CVSSv3=5.5 (nixos-unstable) CVSSv3=5.5 (nixos-unstable) CVSSv3=5.5 (nixos-unstable) CVSSv3=5.5 (nixos-unstable) CVSSv3=5.5 (nixos-unstable) CVSSv3=5.5 (nixos-unstable) CVSSv3=5.5 (nixos-unstable) Scanned versions: nixos-unstable: .