From d304fa415953fcabda31c7e9a4bb13cfe82e8668 Mon Sep 17 00:00:00 2001 From: Lord-Valen Date: Tue, 24 Feb 2026 14:20:49 -0500 Subject: [PATCH] guitarix: fix build with boost 1.89 Fixes: https://github.com/NixOS/nixpkgs/issues/493717#issuecomment-3953833474 --- pkgs/by-name/gu/guitarix/package.nix | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/pkgs/by-name/gu/guitarix/package.nix b/pkgs/by-name/gu/guitarix/package.nix index 33009903f357..a1cc284088ce 100644 --- a/pkgs/by-name/gu/guitarix/package.nix +++ b/pkgs/by-name/gu/guitarix/package.nix @@ -8,6 +8,7 @@ curl, eigen, faust, + fetchpatch2, fftwSinglePrec, gettext, glib, @@ -109,6 +110,21 @@ stdenv.mkDerivation (finalAttrs: { ++ lib.optional withZitaConvolver zita-convolver ++ lib.optional withZitaResampler zita-resampler; + patchFlags = [ "-p2" ]; + patches = [ + # Remove the mandatory check for `boost_system` which was removed in boost 1.89 + (fetchpatch2 { + name = "make-boost-system-stub-optional.patch"; + url = "https://github.com/brummer10/guitarix/compare/v0.47.0..187670358ffc47a0fa09e140586b2e88dfdcf043.patch?full_index=1"; + hash = "sha256-9Z0sAM/oTm3ejv9chDbXEpkjNvlX/SN+k48XaJTqdy0="; + includes = [ + "trunk/waf" + "*/wscript" + "trunk/waftools/*.py" + ]; + }) + ]; + # There are many bad shebangs which can fail builds. # See `https://github.com/brummer10/guitarix/issues/246`. postPatch = ''