diff --git a/pkgs/by-name/li/lief/package.nix b/pkgs/by-name/li/lief/package.nix index dbee168fa05a..bb1cfa8adf7f 100644 --- a/pkgs/by-name/li/lief/package.nix +++ b/pkgs/by-name/li/lief/package.nix @@ -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/";