libvarlink: fix cross compilation by using the correct python3 for varlink-wrapper.py

This commit is contained in:
Nick Cao 2023-10-25 19:13:47 -04:00
parent 3f9b0a534d
commit 75368305af
No known key found for this signature in database

View file

@ -19,18 +19,15 @@ stdenv.mkDerivation (finalAttrs: {
sha256 = "sha256-oUy9HhybNMjRBWoqqal1Mw8cC5RddgN4izxAl0cgnKE=";
};
nativeBuildInputs = [ meson ninja ];
nativeBuildInputs = [ meson ninja python3 ];
postPatch = ''
substituteInPlace varlink-wrapper.py \
--replace "/usr/bin/env python3" "${python3}/bin/python3"
# test-object: ../lib/test-object.c:129: main: Assertion `setlocale(LC_NUMERIC, "de_DE.UTF-8") != 0' failed.
# PR that added it https://github.com/varlink/libvarlink/pull/27
substituteInPlace lib/test-object.c \
--replace 'assert(setlocale(LC_NUMERIC, "de_DE.UTF-8") != 0);' ""
patchShebangs lib/test-symbols.sh
patchShebangs lib/test-symbols.sh varlink-wrapper.py
'';
doCheck = true;