1{ lib, stdenv, fetchFromGitHub, cmake }:
2
3stdenv.mkDerivation rec {
4 pname = "sqlcheck";
5 version = "1.3";
6
7 src = fetchFromGitHub {
8 owner = "jarulraj";
9 repo = "sqlcheck";
10 rev = "v${version}";
11 sha256 = "sha256-rGqCtEO2K+OT44nYU93mF1bJ07id+ixPkRSC8DcO6rY=";
12 fetchSubmodules = true;
13 };
14
15 nativeBuildInputs = [ cmake ];
16
17 doCheck = true;
18
19 meta = with lib; {
20 inherit (src.meta) homepage;
21 description = "Automatically identify anti-patterns in SQL queries";
22 license = licenses.asl20;
23 platforms = platforms.all;
24 maintainers = [ maintainers.marsam ];
25 };
26}