python3Packages.proton-vpn-local-agent: fix wheel build script for all architectures

The upstream builds hardcoddes the wheel package build to x86-64.
This commit patches that script to take into consideration the build architecture.
This commit is contained in:
Viorel-Cătălin Răpițeanu
2025-11-26 22:07:50 +02:00
parent be514d45bb
commit 2dcdcf9974
@@ -47,6 +47,14 @@ buildPythonPackage rec {
rustPlatform.cargoCheckHook
];
postPatch = ''
substituteInPlace scripts/build_wheel.py \
--replace-fail 'ARCH = "x86_64"' \
'ARCH = "${stdenv.hostPlatform.uname.processor}"' \
--replace-fail 'LIB_PATH = get_lib_path("x86_64-unknown-linux-gnu")' \
'LIB_PATH = get_lib_path("${stdenv.hostPlatform.config}")'
'';
postBuild = ''
${python.interpreter} scripts/build_wheel.py
mkdir -p ./dist