Unverified Commit 6e38a7ec authored by Leona Maroni's avatar Leona Maroni Committed by GitHub
Browse files

termcolor: fix build with cmake4 (#451368)

parents 9b6ab22d aae3184d
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@
  lib,
  stdenv,
  fetchFromGitHub,
  fetchpatch,
  cmake,
}:

@@ -16,6 +17,14 @@ stdenv.mkDerivation rec {
    sha256 = "sha256-2RXQ8sn2VNhQ2WZfwCCeQuM6x6C+sLA6ulAaFtaDMZw=";
  };

  patches = [
    # bump minimal required cmake version
    (fetchpatch {
      url = "https://github.com/ikalnytskyi/termcolor/commit/89f20096bef51de347ec6f99345f65147359bd7c.patch?full_index=1";
      hash = "sha256-xouiacA+Kpjz+KOw6PgNRCXHAMENiqMww2WTvAvUpCE=";
    })
  ];

  nativeBuildInputs = [ cmake ];

  cmakeFlags = [ "-DTERMCOLOR_TESTS=ON" ];