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