freeimage: fix build on aarch64-darwin

This commit is contained in:
Weijia Wang 2022-10-12 18:46:32 +02:00
parent 9a8d7bbfd1
commit fd0989d64c
2 changed files with 4 additions and 1 deletions

View file

@ -1,7 +1,7 @@
{ lib, stdenv, fetchsvn, darwin, libtiff
, libpng, zlib, libwebp, libraw, openexr, openjpeg
, libjpeg, jxrlib, pkg-config
, fixDarwinDylibNames }:
, fixDarwinDylibNames, autoSignDarwinBinariesHook }:
stdenv.mkDerivation {
pname = "freeimage";
@ -39,6 +39,8 @@ stdenv.mkDerivation {
] ++ lib.optionals stdenv.isDarwin [
darwin.cctools
fixDarwinDylibNames
] ++ lib.optionals (stdenv.isDarwin && stdenv.isAarch64) [
autoSignDarwinBinariesHook
];
buildInputs = [ libtiff libtiff.dev_private libpng zlib libwebp libraw openexr openjpeg libjpeg libjpeg.dev_private jxrlib ];

View file

@ -18487,6 +18487,7 @@ with pkgs;
fplll_20160331 = callPackage ../development/libraries/fplll/20160331.nix {};
freeimage = callPackage ../development/libraries/freeimage {
inherit (darwin) autoSignDarwinBinariesHook;
libraw = libraw_unstable;
};