Unverified Commit cac694a4 authored by jopejoe1's avatar jopejoe1 Committed by GitHub
Browse files

sqlcheck: fix minimum cmake version, mark as broken on darwin (#451899)

parents 45e68fbf fef33f49
Loading
Loading
Loading
Loading
+10 −2
Original line number Diff line number Diff line
@@ -28,6 +28,13 @@ stdenv.mkDerivation rec {
    })
  ];

  postPatch = ''
    substituteInPlace CMakeLists.txt \
      --replace-fail "cmake_minimum_required(VERSION 2.8 FATAL_ERROR)" "cmake_minimum_required(VERSION 3.10)"
    substituteInPlace external/gflags/CMakeLists.txt \
      --replace-fail "cmake_minimum_required (VERSION 3.0.2 FATAL_ERROR)" "cmake_minimum_required(VERSION 3.10)"
  '';

  nativeBuildInputs = [ cmake ];

  doCheck = true;
@@ -37,7 +44,8 @@ stdenv.mkDerivation rec {
    description = "Automatically identify anti-patterns in SQL queries";
    mainProgram = "sqlcheck";
    license = licenses.asl20;
    platforms = platforms.all;
    maintainers = [ ];
    platforms = with platforms; unix ++ windows;
    broken = stdenv.hostPlatform.isDarwin;
    maintainers = with maintainers; [ h7x4 ];
  };
}