From d2bde715f2289bb604fb825e9d27f587f4d291d0 Mon Sep 17 00:00:00 2001 From: Colin Date: Sat, 9 Nov 2024 21:05:29 +0000 Subject: [PATCH] libbytesize: fix cross compilation libbytesize python module imports a shared object, which only works so long as it's imported on the same architecture it was built for. hence, do the import check as part of `installCheckPhase` where it can be enabled more selectively. --- pkgs/by-name/li/libbytesize/package.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/by-name/li/libbytesize/package.nix b/pkgs/by-name/li/libbytesize/package.nix index 5928f4c9a7ed..2e29b8b29906 100644 --- a/pkgs/by-name/li/libbytesize/package.nix +++ b/pkgs/by-name/li/libbytesize/package.nix @@ -42,6 +42,9 @@ stdenv.mkDerivation (finalAttrs: { libxslt pkg-config python3Packages.python + ]; + + nativeInstallCheckInputs = [ python3Packages.pythonImportsCheckHook ]; @@ -51,6 +54,7 @@ stdenv.mkDerivation (finalAttrs: { pcre2 ]; + doInstallCheck = true; strictDeps = true; postInstall = ''