From 8aeddab81f4349606059d8d336fbfa5a25367f34 Mon Sep 17 00:00:00 2001 From: Jack Wilsdon Date: Sun, 31 Aug 2025 17:57:39 +0100 Subject: [PATCH] python3Packages.lmdb: fix cross compile --- pkgs/development/python-modules/lmdb/default.nix | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/lmdb/default.nix b/pkgs/development/python-modules/lmdb/default.nix index a97f71dad212..5d604682a826 100644 --- a/pkgs/development/python-modules/lmdb/default.nix +++ b/pkgs/development/python-modules/lmdb/default.nix @@ -26,16 +26,15 @@ buildPythonPackage rec { buildInputs = [ lmdb ]; + nativeBuildInputs = [ cffi ]; + env.LMDB_FORCE_SYSTEM = 1; dependencies = [ patch-ng ]; pythonImportsCheck = [ "lmdb" ]; - nativeCheckInputs = [ - cffi - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = { description = "Universal Python binding for the LMDB 'Lightning' Database";