9 stdenv.mkDerivation rec {
10 pname = "libinjection";
13 src = fetchFromGitHub {
17 sha256 = "0chsgam5dqr9vjfhdcp8cgk7la6nf3lq44zs6z6si98cq743550g";
20 nativeBuildInputs = [ python3 ];
26 name = "support-python3-for-building";
27 url = "https://raw.githubusercontent.com/sysown/proxysql/bed58f92917eb651b80fd8ffa627a485eb320805/deps/libinjection/update-build-py3.diff";
28 hash = "sha256-SPdf57FIDDNpatWe5pjhAiZl5yPMDEv50k0Wj+eWTEM=";
34 substituteInPlace src/Makefile \
35 --replace /usr/local $out
38 configurePhase = "cd src";
39 buildPhase = "make all";
41 # no binaries, so out = library, dev = headers
48 description = "SQL / SQLI tokenizer parser analyzer";
49 homepage = "https://github.com/client9/libinjection";
50 license = licenses.bsd3;
51 platforms = platforms.all;
52 maintainers = with maintainers; [ thoughtpolice ];