lief: Fix failing build

This commit is contained in:
polyfloyd
2025-09-16 17:21:06 +02:00
parent f49c602fc3
commit 0898e7bc0d
+7 -1
View File
@@ -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/";