libbytesize: fix cross compilation (#396061)

This commit is contained in:
Aleksana 2025-04-05 23:03:35 +08:00 committed by GitHub
commit 6504a9b478
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -62,7 +62,7 @@ stdenv.mkDerivation (finalAttrs: {
--replace-fail 'CDLL("libbytesize.so.1")' "CDLL('$out/lib/libbytesize.so.1')"
# Force compilation of .pyc files to make them deterministic
${python3Packages.python.interpreter} -m compileall $out/${python3Packages.python.sitePackages}/bytesize
${python3Packages.python.pythonOnBuildForHost.interpreter} -m compileall $out/${python3Packages.python.sitePackages}/bytesize
'';
pythonImportsCheck = [ "bytesize" ];