diff --git a/pkgs/development/libraries/libtiff/default.nix b/pkgs/development/libraries/libtiff/default.nix index d4e35a115e8d..2c99199664de 100644 --- a/pkgs/development/libraries/libtiff/default.nix +++ b/pkgs/development/libraries/libtiff/default.nix @@ -29,8 +29,8 @@ stdenv.mkDerivation rec { patch -p0 < "$p" done ) - patch -p0 < ${patchDir}/*-tiff2pdf-colors.patch - ''; + patch -p0 < ${patchDir}/${if stdenv.isDarwin then "tiff-4.0.3" else "*"}-tiff2pdf-colors.patch + ''; # ^ sh on darwin seems not to expand globs in redirects, and I don't want to rebuild all again elsewhere nativeBuildInputs = [ pkgconfig ];