python3Packages.sigrok: fix build with swig 4.4 (#523371)

This commit is contained in:
Bjørn Forsman
2026-05-23 16:05:00 +00:00
committed by GitHub
@@ -25,6 +25,14 @@ toPythonModule (
./python-install.patch
];
postPatch = ''
${orig.postPatch or ""}
# %init block lands in SWIG_mod_exec (returns int) under swig >= 4.4.
substituteInPlace bindings/python/sigrok/core/classes.i \
--replace-fail 'return nullptr;' 'return -1;'
'';
nativeBuildInputs =
orig.nativeBuildInputs or [ ]
++ [