diff options
author | Austin Seipp <aseipp@pobox.com> | 2019-10-21 19:20:47 -0500 |
---|---|---|
committer | Austin Seipp <aseipp@pobox.com> | 2019-10-21 19:21:11 -0500 |
commit | b09fbccbafa340d3898dc3cb4a8b4bffd6d1fe9b (patch) | |
tree | b3165b9a1c4972d7bb58fedb388776bac3b7b12b /pkgs/development/libraries/libinjection | |
parent | c0dd1e540035ebe88391ea59b0f6d410000c79fe (diff) | |
download | nixpkgs-b09fbccbafa340d3898dc3cb4a8b4bffd6d1fe9b.tar nixpkgs-b09fbccbafa340d3898dc3cb4a8b4bffd6d1fe9b.tar.gz nixpkgs-b09fbccbafa340d3898dc3cb4a8b4bffd6d1fe9b.tar.bz2 nixpkgs-b09fbccbafa340d3898dc3cb4a8b4bffd6d1fe9b.tar.lz nixpkgs-b09fbccbafa340d3898dc3cb4a8b4bffd6d1fe9b.tar.xz nixpkgs-b09fbccbafa340d3898dc3cb4a8b4bffd6d1fe9b.tar.zst nixpkgs-b09fbccbafa340d3898dc3cb4a8b4bffd6d1fe9b.zip |
libinjection: init at 3.10.0
Signed-off-by: Austin Seipp <aseipp@pobox.com>
Diffstat (limited to 'pkgs/development/libraries/libinjection')
-rw-r--r-- | pkgs/development/libraries/libinjection/default.nix | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/pkgs/development/libraries/libinjection/default.nix b/pkgs/development/libraries/libinjection/default.nix new file mode 100644 index 00000000000..b3bdbb41588 --- /dev/null +++ b/pkgs/development/libraries/libinjection/default.nix @@ -0,0 +1,37 @@ +{ stdenv, fetchFromGitHub +, python +}: + +stdenv.mkDerivation rec { + pname = "libinjection"; + version = "3.10.0"; + + src = fetchFromGitHub { + owner = "client9"; + repo = pname; + rev = "refs/tags/v${version}"; + sha256 = "0chsgam5dqr9vjfhdcp8cgk7la6nf3lq44zs6z6si98cq743550g"; + }; + + nativeBuildInputs = [ python ]; + + 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" ]; + + meta = with stdenv.lib; { + description = "SQL / SQLI tokenizer parser analyzer"; + homepage = "https://github.com/client9/libinjection"; + license = licenses.bsd3; + platforms = platforms.all; + maintainers = with maintainers; [ thoughtpolice ]; + }; +} |