From 8965393f1f2466acb893ecbda42298ec0c10784e Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Sun, 11 Feb 2024 12:40:53 +0000 Subject: [PATCH] zrythm: fix `gcc-13` build failure Without the change the build fails on `master` as https://hydra.nixos.org/build/249149391: ../data/plugins/generated/compressor.lv2/compressor.cpp ../data/plugins/generated/compressor.lv2/compressor.cpp:351:9: error: 'intptr_t' does not name a type 351 | intptr_t fpsr = 0; | ^~~~~~~~ --- pkgs/applications/audio/zrythm/default.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pkgs/applications/audio/zrythm/default.nix b/pkgs/applications/audio/zrythm/default.nix index 4817f63adf73..254e0e5b746d 100644 --- a/pkgs/applications/audio/zrythm/default.nix +++ b/pkgs/applications/audio/zrythm/default.nix @@ -2,6 +2,7 @@ , lib , fetchFromGitHub , fetchFromSourcehut +, fetchpatch , SDL2 , alsa-lib , appstream @@ -170,6 +171,15 @@ stdenv.mkDerivation rec { zstd ]; + patches = [ + # Fix gcc-13 build failure + (fetchpatch { + name = "gcc-13.patch"; + url = "https://gitlab.zrythm.org/zrythm/zrythm/-/commit/cbc2b3715b939718479631841f2d9703fb28e6da.diff"; + hash = "sha256-2ZTSaCtSO3yynJVFe5B1AEjWhjRa5YyA26ergAfdL5Y="; + }) + ]; + # Zrythm uses meson to build, but requires cmake for dependency detection. dontUseCmakeConfigure = true;