about summary refs log tree commit diff
path: root/pkgs/applications/audio/ams-lv2
diff options
context:
space:
mode:
authorArtturin <Artturin@artturin.com>2023-10-05 23:22:15 +0300
committerArtturin <Artturin@artturin.com>2023-10-06 03:45:57 +0300
commit80fa4c9a4152a338725c6bbd30f8f640adbe4d7b (patch)
treeff8dfa88c0dfed778a0135b9d520aaae19bdeeb8 /pkgs/applications/audio/ams-lv2
parentcf379926033cb157580f543407761257a822bf2b (diff)
ams-lv2: fix py311 build
Diffstat (limited to 'pkgs/applications/audio/ams-lv2')
-rw-r--r--pkgs/applications/audio/ams-lv2/default.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/applications/audio/ams-lv2/default.nix b/pkgs/applications/audio/ams-lv2/default.nix
index 88956a190c4a4..3d3589de5485c 100644
--- a/pkgs/applications/audio/ams-lv2/default.nix
+++ b/pkgs/applications/audio/ams-lv2/default.nix
@@ -15,6 +15,12 @@ stdenv.mkDerivation  rec {
   nativeBuildInputs = [ pkg-config wafHook python3 ];
   buildInputs = [ cairo fftw gtkmm2 lv2 lvtk ];
 
+  postPatch = ''
+    # U was removed in python 3.11 because it had no effect
+    substituteInPlace waflib/*.py \
+      --replace "m='rU" "m='r"
+  '';
+
   meta = with lib; {
     description = "An LV2 port of the internal modules found in Alsa Modular Synth";
     homepage = "https://github.com/blablack/ams-lv2";