2021-01-23 12:26:19 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake }:
|
2018-11-28 04:36:51 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "sqlcheck";
|
2022-03-21 18:54:02 +00:00
|
|
|
version = "1.3";
|
2018-11-28 04:36:51 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jarulraj";
|
|
|
|
repo = "sqlcheck";
|
|
|
|
rev = "v${version}";
|
2022-03-21 18:54:02 +00:00
|
|
|
sha256 = "sha256-rGqCtEO2K+OT44nYU93mF1bJ07id+ixPkRSC8DcO6rY=";
|
2018-11-28 04:36:51 +00:00
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
2021-01-23 12:26:19 +00:00
|
|
|
meta = with lib; {
|
2018-11-28 04:36:51 +00:00
|
|
|
inherit (src.meta) homepage;
|
|
|
|
description = "Automatically identify anti-patterns in SQL queries";
|
|
|
|
license = licenses.asl20;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = [ maintainers.marsam ];
|
|
|
|
};
|
|
|
|
}
|