Commit d2bde715 authored by Colin's avatar Colin
Browse files

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.
parent 52c3ce5d
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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 = ''