epsonscan2: fix build with CMake 4

Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
This commit is contained in:
Sefa Eyeoglu
2025-10-07 22:37:55 +02:00
parent d3f46a1743
commit 887847fa49

View File

@@ -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"