Merge pull request #302606 from dotlambda/imagemagick

imagemagick: 7.1.1-29 -> 7.1.1-30
This commit is contained in:
Robert Schütz
2024-04-12 20:38:37 +00:00
committed by GitHub
2 changed files with 8 additions and 7 deletions
@@ -50,13 +50,13 @@ in
stdenv.mkDerivation (finalAttrs: {
pname = "imagemagick";
version = "7.1.1-29";
version = "7.1.1-30";
src = fetchFromGitHub {
owner = "ImageMagick";
repo = "ImageMagick";
rev = finalAttrs.version;
hash = "sha256-W9WbHzmTa0dA9+mOxXu88qmN1mO9ORaH0Nj6r2s1Q+E=";
hash = "sha256-btXl1J/WjV+5BZibgUzylVmBrhR3KBK/ZSbP0B2fM5c=";
};
outputs = [ "out" "dev" "doc" ]; # bin/ isn't really big
@@ -4,7 +4,6 @@
, fetchpatch
, fixDarwinDylibNames
, pkgsStatic
, imagemagick_light
}:
stdenv.mkDerivation rec {
@@ -29,9 +28,7 @@ stdenv.mkDerivation rec {
./mingw-install-exes.patch
];
nativeBuildInputs = [
imagemagick_light
] ++ lib.optionals stdenv.isDarwin [
nativeBuildInputs = lib.optionals stdenv.isDarwin [
fixDarwinDylibNames
];
@@ -39,7 +36,11 @@ stdenv.mkDerivation rec {
"PREFIX=${builtins.placeholder "out"}"
];
postPatch = lib.optionalString stdenv.hostPlatform.isStatic ''
postPatch = ''
# we don't want to build HTML documentation
substituteInPlace doc/Makefile \
--replace-fail "all: allhtml manpages" "all: manpages"
'' + lib.optionalString stdenv.hostPlatform.isStatic ''
# Upstream build system does not support NOT building shared libraries.
sed -i '/all:/ s/$(LIBGIFSO)//' Makefile
sed -i '/all:/ s/$(LIBUTILSO)//' Makefile