From a7d34dcaa91602ba9d663f7b90c27f4d68f4ed9d Mon Sep 17 00:00:00 2001 From: DeimElias Date: Fri, 17 Oct 2025 22:59:02 -0600 Subject: [PATCH] cups-zj-58: fix CMake compatibility --- pkgs/by-name/cu/cups-zj-58/package.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/by-name/cu/cups-zj-58/package.nix b/pkgs/by-name/cu/cups-zj-58/package.nix index 488a8faab6fe..24ec666f92fd 100644 --- a/pkgs/by-name/cu/cups-zj-58/package.nix +++ b/pkgs/by-name/cu/cups-zj-58/package.nix @@ -25,6 +25,11 @@ stdenv.mkDerivation { buildInputs = [ cups ]; + patchPhase = '' + substituteInPlace CMakeLists.txt \ + --replace-fail "cmake_minimum_required ( VERSION 3.0 )" "cmake_minimum_required ( VERSION 3.10 )" + ''; + installPhase = '' install -D ppd/zj80.ppd $out/share/cups/model/zjiang/zj80.ppd install -D ppd/zj58.ppd $out/share/cups/model/zjiang/zj58.ppd