From 887847fa49abf3ddb9e9a19598fb78fe0c0b1d19 Mon Sep 17 00:00:00 2001 From: Sefa Eyeoglu Date: Tue, 7 Oct 2025 22:37:55 +0200 Subject: [PATCH] epsonscan2: fix build with CMake 4 Signed-off-by: Sefa Eyeoglu --- pkgs/by-name/ep/epsonscan2/package.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/by-name/ep/epsonscan2/package.nix b/pkgs/by-name/ep/epsonscan2/package.nix index 5c491a50f523..e153a8e76e9a 100644 --- a/pkgs/by-name/ep/epsonscan2/package.nix +++ b/pkgs/by-name/ep/epsonscan2/package.nix @@ -105,6 +105,9 @@ stdenv.mkDerivation { # The non-free (Debian) packages uses this directory structure so do the same when compiling # from source so we can easily merge them. "-DCMAKE_INSTALL_LIBDIR=lib/${system}-gnu" + # There are many CMakeLists.txt files with various minimum versions. It's much easier to set this + # here, instead of substituting those everywhere + "-DCMAKE_POLICY_VERSION_MINIMUM=3.10" ] ++ lib.optionals (!withGui) [ "-DNO_GUI=ON"