Merge pull request #264586 from qkaiser/lief-darwin

This commit is contained in:
Lassulus 2023-11-01 10:00:06 +00:00 committed by GitHub
commit 1179e95611
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -33,14 +33,16 @@ stdenv.mkDerivation rec {
python
];
env.CXXFLAGS = toString (lib.optional stdenv.isDarwin [ "-faligned-allocation" "-fno-aligned-new" "-fvisibility=hidden" ]);
postBuild = ''
pushd /build/source/api/python
pushd ../api/python
${pyEnv.interpreter} setup.py build --parallel=$NIX_BUILD_CORES
popd
'';
postInstall = ''
pushd /build/source/api/python
pushd ../api/python
${pyEnv.interpreter} setup.py install --skip-build --root=/ --prefix=$py
popd
'';