icoutils: fix build on aarch64-darwin

This commit is contained in:
Randy Eckenrode 2022-02-23 22:58:34 -05:00
parent 0869a7d57a
commit 20648fc2cc
No known key found for this signature in database
GPG Key ID: 64C1CD4EC2A600D9

View File

@ -13,6 +13,10 @@ stdenv.mkDerivation rec {
buildInputs = [ libpng perl ];
propagatedBuildInputs = [ perlPackages.LWP ];
# Fixes a build failure on aarch64-darwin. Define for all Darwin targets for when x86_64-darwin
# upgrades to a newer SDK.
NIX_CFLAGS_COMPILE = lib.optional stdenv.isDarwin "-DTARGET_OS_IPHONE=0";
patchPhase = ''
patchShebangs extresso/extresso
patchShebangs extresso/extresso.in