From 739d7af5d2526013313df9c5adb3bd6c849bcae2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment?= Date: Thu, 16 Oct 2025 12:15:14 -0700 Subject: [PATCH] dabtools: fix build failure with cmake 4 - CMake 4 is no longer retro compatible with versions < 3.5 --- pkgs/by-name/da/dabtools/package.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/by-name/da/dabtools/package.nix b/pkgs/by-name/da/dabtools/package.nix index 176909ca5431..ce554e4b7300 100644 --- a/pkgs/by-name/da/dabtools/package.nix +++ b/pkgs/by-name/da/dabtools/package.nix @@ -30,6 +30,13 @@ stdenv.mkDerivation { libusb1 ]; + # CMake 4 is no longer retro compatible with versions < 3.5 + postPatch = '' + substituteInPlace CMakeLists.txt src/CMakeLists.txt --replace-fail \ + "cmake_minimum_required(VERSION 2.8)" \ + "cmake_minimum_required(VERSION 3.5)" + ''; + meta = with lib; { description = "Commandline tools for DAB and DAB+ digital radio broadcasts"; homepage = "https://github.com/Opendigitalradio/dabtools";