libjack2: fix python 3.12 support

Backports the waf 2.0.26 update, which adds Python 3.12 support to the
build system.
This commit is contained in:
Martin Weinelt
2024-06-24 12:18:23 +02:00
parent dc86b0e7f0
commit 74f29cd4b6
+10 -1
View File
@@ -1,4 +1,4 @@
{ lib, stdenv, fetchFromGitHub, pkg-config, python3Packages, makeWrapper
{ lib, stdenv, fetchFromGitHub, fetchpatch2, pkg-config, python3Packages, makeWrapper
, libsamplerate, libsndfile, readline, eigen, celt
, wafHook
# Darwin Dependencies
@@ -46,6 +46,15 @@ stdenv.mkDerivation (finalAttrs: {
aften AudioUnit CoreAudio Accelerate libobjc
];
patches = [
(fetchpatch2 {
# Python 3.12 support
name = "jack2-waf2.0.26.patch";
url = "https://github.com/jackaudio/jack2/commit/250420381b1a6974798939ad7104ab1a4b9a9994.patch";
hash = "sha256-M/H72lLTeddefqth4BSkEfySZRYMIzLErb7nIgVN0u8=";
})
];
postPatch = ''
patchShebangs --build svnversion_regenerate.sh
'';