libjpeg_turbo: apply cmake patch for darwin
There is a regression with 3.19.1 which, for so far we've noticed, only affects this package and on Darwin. To avoid a mass-rebuild right now, we patch cmake only for darwin and this package. Fixes https://github.com/NixOS/nixpkgs/issues/105854
This commit is contained in:
parent
4b8f5caddc
commit
5524c43f2c
@ -14323,7 +14323,18 @@ in
|
||||
|
||||
libjpeg_original = callPackage ../development/libraries/libjpeg { };
|
||||
# also known as libturbojpeg
|
||||
libjpeg_turbo = callPackage ../development/libraries/libjpeg-turbo { };
|
||||
libjpeg_turbo = callPackage ../development/libraries/libjpeg-turbo (lib.optionalAttrs stdenv.isDarwin {
|
||||
# cmake 3.19.1 has a bug. So far only noticed with this package.
|
||||
# https://github.com/NixOS/nixpkgs/issues/105854
|
||||
cmake = cmake.overrideAttrs(oldAttrs: {
|
||||
patches = oldAttrs.patches ++ [
|
||||
(fetchpatch {
|
||||
url = "https://gitlab.kitware.com/cmake/cmake/-/commit/fcabf4a47e0c441ff80fad8f34e388b16738bd33.patch";
|
||||
sha256 = "bVrjY8omtAEKe8G76hGtmO54LKJvhx3RTW6OF6Y7rsU=";
|
||||
})
|
||||
];
|
||||
});
|
||||
});
|
||||
libjpeg = libjpeg_turbo;
|
||||
|
||||
libjreen = callPackage ../development/libraries/libjreen { };
|
||||
|
Loading…
Reference in New Issue
Block a user