2021-01-21 18:00:13 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub
|
2021-03-26 10:49:29 +01:00
|
|
|
, python2
|
2019-10-22 02:20:47 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "libinjection";
|
|
|
|
version = "3.10.0";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "client9";
|
|
|
|
repo = pname;
|
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
sha256 = "0chsgam5dqr9vjfhdcp8cgk7la6nf3lq44zs6z6si98cq743550g";
|
|
|
|
};
|
|
|
|
|
2021-03-26 10:49:29 +01:00
|
|
|
nativeBuildInputs = [ python2 ];
|
|
|
|
|
|
|
|
strictDeps = true;
|
2019-10-22 02:20:47 +02:00
|
|
|
|
|
|
|
patchPhase = ''
|
|
|
|
patchShebangs src
|
|
|
|
substituteInPlace src/Makefile \
|
|
|
|
--replace /usr/local $out
|
|
|
|
'';
|
|
|
|
|
|
|
|
configurePhase = "cd src";
|
|
|
|
buildPhase = "make all";
|
|
|
|
|
|
|
|
# no binaries, so out = library, dev = headers
|
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
|
2021-01-21 18:00:13 +01:00
|
|
|
meta = with lib; {
|
2019-10-22 02:20:47 +02:00
|
|
|
description = "SQL / SQLI tokenizer parser analyzer";
|
|
|
|
homepage = "https://github.com/client9/libinjection";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = with maintainers; [ thoughtpolice ];
|
|
|
|
};
|
|
|
|
}
|