1 { lib, stdenv, fetchFromGitHub
5 stdenv.mkDerivation rec {
6 pname = "libinjection";
9 src = fetchFromGitHub {
12 rev = "refs/tags/v${version}";
13 sha256 = "0chsgam5dqr9vjfhdcp8cgk7la6nf3lq44zs6z6si98cq743550g";
16 nativeBuildInputs = [ python2 ];
22 substituteInPlace src/Makefile \
23 --replace /usr/local $out
26 configurePhase = "cd src";
27 buildPhase = "make all";
29 # no binaries, so out = library, dev = headers
30 outputs = [ "out" "dev" ];
33 description = "SQL / SQLI tokenizer parser analyzer";
34 homepage = "https://github.com/client9/libinjection";
35 license = licenses.bsd3;
36 platforms = platforms.all;
37 maintainers = with maintainers; [ thoughtpolice ];