diff --git a/pkgs/by-name/sq/sqlcheck/package.nix b/pkgs/by-name/sq/sqlcheck/package.nix index 7bcf34efe87e..eb392e230012 100644 --- a/pkgs/by-name/sq/sqlcheck/package.nix +++ b/pkgs/by-name/sq/sqlcheck/package.nix @@ -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 ]; }; }