From 6c5697be90125b7a03f00ee75855500f065701a4 Mon Sep 17 00:00:00 2001 From: Emily Date: Tue, 16 Sep 2025 03:28:11 +0100 Subject: [PATCH] encfs: fix build with CMake 4 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Deprecated upstream; won’t be fixed there. Co-authored-by: K900 --- pkgs/tools/filesystems/encfs/default.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkgs/tools/filesystems/encfs/default.nix b/pkgs/tools/filesystems/encfs/default.nix index dcc80c0acca7..7d43131ea403 100644 --- a/pkgs/tools/filesystems/encfs/default.nix +++ b/pkgs/tools/filesystems/encfs/default.nix @@ -10,6 +10,7 @@ fuse, openssl, tinyxml2, + gtest, }: stdenv.mkDerivation rec { @@ -36,6 +37,7 @@ stdenv.mkDerivation rec { fuse openssl tinyxml2 + gtest ]; nativeBuildInputs = [ cmake @@ -49,6 +51,12 @@ stdenv.mkDerivation rec { "-DUSE_INTERNAL_TINYXML=OFF" "-DBUILD_SHARED_LIBS=ON" "-DINSTALL_LIBENCFS=ON" + + # Fix the build with CMake 4. + # + # Upstream is deprecated, so it won’t be fixed there. We should + # probably phase this package out. + "-DCMAKE_POLICY_VERSION_MINIMUM=3.10" ]; meta = with lib; {