mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-06 18:26:45 +01:00
40 lines
883 B
Nix
40 lines
883 B
Nix
{ lib, stdenv, fetchFromGitHub
|
|
, python2
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "libinjection";
|
|
version = "3.10.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "client9";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
sha256 = "0chsgam5dqr9vjfhdcp8cgk7la6nf3lq44zs6z6si98cq743550g";
|
|
};
|
|
|
|
nativeBuildInputs = [ python2 ];
|
|
|
|
strictDeps = true;
|
|
|
|
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 lib; {
|
|
description = "SQL / SQLI tokenizer parser analyzer";
|
|
homepage = "https://github.com/client9/libinjection";
|
|
license = licenses.bsd3;
|
|
platforms = platforms.all;
|
|
maintainers = with maintainers; [ thoughtpolice ];
|
|
};
|
|
}
|