blob: 0673061c486d9e2585f4d1ffb2633baac24495a9 (
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
27
28
29
30
31
32
33
34
35
36
37
|
{ lib, stdenv, fetchFromGitHub, fetchpatch, cmake }:
stdenv.mkDerivation rec {
pname = "sqlcheck";
version = "1.3";
src = fetchFromGitHub {
owner = "jarulraj";
repo = "sqlcheck";
rev = "v${version}";
hash = "sha256-rGqCtEO2K+OT44nYU93mF1bJ07id+ixPkRSC8DcO6rY=";
fetchSubmodules = true;
};
patches = [
# Fix gcc-13 build failure:
# https://github.com/jarulraj/sqlcheck/pull/62
(fetchpatch {
name = "gcc-13.patch";
url = "https://github.com/jarulraj/sqlcheck/commit/ca131db13b860cf1d9194a1c7f7112f28f49acca.patch";
hash = "sha256-uoF7rYvjdIUu82JCLXq/UGswgwM6JCpmABP4ItWjDe4=";
})
];
nativeBuildInputs = [ cmake ];
doCheck = true;
meta = with lib; {
inherit (src.meta) homepage;
description = "Automatically identify anti-patterns in SQL queries";
mainProgram = "sqlcheck";
license = licenses.asl20;
platforms = platforms.all;
maintainers = [ ];
};
}
|