lief: fix darwin support

The '/build/source' symlink does not seem to exist on Darwin targets.

Properly set CXXFLAGS to limit compilation errors and warnings on Darwin
targets.

+4 -2
+4 -2
pkgs/development/libraries/lief/default.nix
··· 33 python 34 ]; 35 36 postBuild = '' 37 - pushd /build/source/api/python 38 ${pyEnv.interpreter} setup.py build --parallel=$NIX_BUILD_CORES 39 popd 40 ''; 41 42 postInstall = '' 43 - pushd /build/source/api/python 44 ${pyEnv.interpreter} setup.py install --skip-build --root=/ --prefix=$py 45 popd 46 '';
··· 33 python 34 ]; 35 36 + env.CXXFLAGS = toString (lib.optional stdenv.isDarwin [ "-faligned-allocation" "-fno-aligned-new" "-fvisibility=hidden" ]); 37 + 38 postBuild = '' 39 + pushd ../api/python 40 ${pyEnv.interpreter} setup.py build --parallel=$NIX_BUILD_CORES 41 popd 42 ''; 43 44 postInstall = '' 45 + pushd ../api/python 46 ${pyEnv.interpreter} setup.py install --skip-build --root=/ --prefix=$py 47 popd 48 '';