Merge pull request #120124 from veprbl/pr/freeimage_fix

freeimage: fix for darwin
This commit is contained in:
Dmitry Kalinkin 2021-04-23 09:27:55 -04:00 committed by GitHub
commit 638936f657
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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) ''