mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-22 08:30:57 +00:00
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.
This commit is contained in:
@@ -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 = ''
|
||||
|
||||
Reference in New Issue
Block a user