From 4244b2e4eeaff50b145c489760838299bdb7039b Mon Sep 17 00:00:00 2001 From: illustris Date: Wed, 8 Oct 2025 09:53:15 +0530 Subject: [PATCH] hadoop: fix build with cmake 4 --- .../networking/cluster/hadoop/containerExecutor.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/networking/cluster/hadoop/containerExecutor.nix b/pkgs/applications/networking/cluster/hadoop/containerExecutor.nix index 778ed6261df0..2f8b27c170fd 100644 --- a/pkgs/applications/networking/cluster/hadoop/containerExecutor.nix +++ b/pkgs/applications/networking/cluster/hadoop/containerExecutor.nix @@ -21,13 +21,16 @@ stdenv.mkDerivation (finalAttrs: { "hadoop-${finalAttrs.version}-src/hadoop-yarn-project/hadoop-yarn/" + "hadoop-yarn-server/hadoop-yarn-server-nodemanager/src"; + postPatch = '' + sed -i -r 's/(cmake_minimum_required\(VERSION) [0-9.]+/\1 3.10/' CMakeLists.txt + ''; nativeBuildInputs = [ cmake ]; buildInputs = [ openssl ]; cmakeFlags = [ "-DHADOOP_CONF_DIR=/run/wrappers/yarn-nodemanager/etc/hadoop" ]; installPhase = '' mkdir $out - mv target/var/empty/local/bin $out/ + mv target/usr/local/bin $out/ ''; meta = with lib; {