From f8c8434b0e0b5a5254aba145a2aa5be2d98acd12 Mon Sep 17 00:00:00 2001 From: Rafael Ieda Date: Tue, 21 Oct 2025 07:43:32 -0300 Subject: [PATCH] ensemble-chorus: fix build with cmake4 --- pkgs/by-name/en/ensemble-chorus/package.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/pkgs/by-name/en/ensemble-chorus/package.nix b/pkgs/by-name/en/ensemble-chorus/package.nix index 0bc9963b7bfd..ba5f43d8b69a 100644 --- a/pkgs/by-name/en/ensemble-chorus/package.nix +++ b/pkgs/by-name/en/ensemble-chorus/package.nix @@ -47,6 +47,18 @@ stdenv.mkDerivation { libjack2 ]; + postPatch = '' + substituteInPlace CMakeLists.txt --replace-fail \ + 'cmake_minimum_required(VERSION "3.3")' \ + 'cmake_minimum_required(VERSION 4.0)' + substituteInPlace thirdparty/gsl-lite/CMakeLists.txt --replace-fail \ + 'cmake_minimum_required( VERSION 3.0 FATAL_ERROR )' \ + 'cmake_minimum_required(VERSION 4.0)' + substituteInPlace thirdparty/jsl/CMakeLists.txt --replace-fail \ + 'cmake_minimum_required(VERSION 3.3)' \ + 'cmake_minimum_required(VERSION 4.0)' + ''; + meta = with lib; { homepage = "https://github.com/jpcima/ensemble-chorus"; description = "Digital model of electronic string ensemble chorus";