Unverified Commit 1179e956 authored by Lassulus's avatar Lassulus Committed by GitHub
Browse files

Merge pull request #264586 from qkaiser/lief-darwin

parents f7fa4ef8 201aeaab
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -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
  '';