Commit 0898e7bc authored by polyfloyd's avatar polyfloyd
Browse files

lief: Fix failing build

parent f49c602f
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -47,7 +47,11 @@ stdenv.mkDerivation (finalAttrs: {
    scikit-build-core
  ];

  cmakeFlags = [ (lib.cmakeBool "BUILD_SHARED_LIBS" (!stdenv.hostPlatform.isStatic)) ];
  cmakeFlags = [
    (lib.cmakeBool "LIEF_PYTHON_API" true)
    (lib.cmakeBool "LIEF_EXAMPLES" false)
    (lib.cmakeBool "BUILD_SHARED_LIBS" (!stdenv.hostPlatform.isStatic))
  ];

  postBuild = ''
    pushd ../api/python
@@ -61,6 +65,8 @@ stdenv.mkDerivation (finalAttrs: {
    popd
  '';

  pythonImportsCheck = [ "lief" ];

  meta = with lib; {
    description = "Library to Instrument Executable Formats";
    homepage = "https://lief.quarkslab.com/";