libbytesize: fix cross compilation

This commit is contained in:
Colin 2025-04-04 06:49:19 +00:00
parent 7767c4b619
commit 6122f10876

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" ];