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"