diff options
author | Dmitry Kalinkin <dmitry.kalinkin@gmail.com> | 2021-04-21 20:22:33 -0400 |
---|---|---|
committer | Dmitry Kalinkin <dmitry.kalinkin@gmail.com> | 2021-04-22 08:54:24 -0400 |
commit | a157fc89a052bc672d1441d429f497faa58782b4 (patch) | |
tree | ce77aa60779a5a2b722fcb6a5f173ca9a3f00d20 /pkgs/development/libraries | |
parent | 382d4bac6b209acfe980a065c5e7db124b4e2692 (diff) |
freeimage: fix for darwin
Diffstat (limited to 'pkgs/development/libraries')
-rw-r--r-- | pkgs/development/libraries/freeimage/default.nix | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/development/libraries/freeimage/default.nix b/pkgs/development/libraries/freeimage/default.nix index 5714131416d6b..b50783e2719ed 100644 --- a/pkgs/development/libraries/freeimage/default.nix +++ b/pkgs/development/libraries/freeimage/default.nix @@ -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) '' |