freeimage: fix for darwin

This commit is contained in:
Dmitry Kalinkin 2021-04-21 20:22:33 -04:00
parent 382d4bac6b
commit a157fc89a0
No known key found for this signature in database
GPG key ID: 5157B3EC8B2CA333

View file

@ -29,6 +29,10 @@ stdenv.mkDerivation {
preInstall = ''
mkdir -p $INCDIR $INSTALLDIR
''
# Workaround for Makefiles.osx not using ?=
+ lib.optionalString stdenv.isDarwin ''
makeFlagsArray+=( "INCDIR=$INCDIR" "INSTALLDIR=$INSTALLDIR" )
'';
postInstall = lib.optionalString (!stdenv.isDarwin) ''