From a590702ecd1ed37e78d4d2329a3e8f62d3270292 Mon Sep 17 00:00:00 2001 From: Rafael Ieda Date: Wed, 22 Oct 2025 07:37:33 -0300 Subject: [PATCH] luastatus: fix build with cmake4 --- pkgs/by-name/lu/luastatus/package.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/by-name/lu/luastatus/package.nix b/pkgs/by-name/lu/luastatus/package.nix index 4f28dbad3945..40fb644ff715 100644 --- a/pkgs/by-name/lu/luastatus/package.nix +++ b/pkgs/by-name/lu/luastatus/package.nix @@ -67,6 +67,11 @@ stdenv.mkDerivation (finalAttrs: { docutils ]; + postPatch = '' + substituteInPlace CMakeLists.txt \ + --replace-fail "cmake_minimum_required (VERSION 3.1.3)" "cmake_minimum_required(VERSION 3.10)" + ''; + postInstall = '' wrapProgram $out/bin/luastatus-stdout-wrapper \ --prefix LUASTATUS : $out/bin/luastatus