about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/tools/database/sqlcheck/default.nix
blob: 867aa0b98eca62cdbbc8614fc871adb9bc61584e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{ stdenv, fetchFromGitHub, cmake }:

stdenv.mkDerivation rec {
  name = "sqlcheck-${version}";
  version = "1.2";

  src = fetchFromGitHub {
    owner = "jarulraj";
    repo = "sqlcheck";
    rev = "v${version}";
    sha256 = "0v8idyhwhbphxzmh03lih3wd9gdq317zn7wsf01infih7b6l0k69";
    fetchSubmodules = true;
  };

  nativeBuildInputs = [ cmake ];

  doCheck = true;

  meta = with stdenv.lib; {
    inherit (src.meta) homepage;
    description = "Automatically identify anti-patterns in SQL queries";
    license = licenses.asl20;
    platforms = platforms.all;
    maintainers = [ maintainers.marsam ];
  };
}