diff options
author | Fabian Affolter <mail@fabian-affolter.ch> | 2021-03-24 22:46:33 +0100 |
---|---|---|
committer | Fabian Affolter <mail@fabian-affolter.ch> | 2021-03-24 22:46:33 +0100 |
commit | 6ab5277729d07116fcb92e50912712d4728caa53 (patch) | |
tree | 3857121b6cbf32a085543e47352949c0cf299e7c /pkgs/development/tools/flawfinder | |
parent | 5faa02940a9cdd002f7bcf1ab85f7e4cba1077ba (diff) |
flawfinder: init at 2.0.15
Diffstat (limited to 'pkgs/development/tools/flawfinder')
-rw-r--r-- | pkgs/development/tools/flawfinder/default.nix | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/pkgs/development/tools/flawfinder/default.nix b/pkgs/development/tools/flawfinder/default.nix new file mode 100644 index 0000000000000..28805b4abe430 --- /dev/null +++ b/pkgs/development/tools/flawfinder/default.nix @@ -0,0 +1,35 @@ +{ lib +, stdenv +, fetchurl +, installShellFiles +, python3 +}: + +stdenv.mkDerivation rec { + pname = "flawfinder"; + version = "2.0.15"; + + src = fetchurl { + url = "https://dwheeler.com/flawfinder/flawfinder-${version}.tar.gz"; + sha256 = "01j4szy8gwvikrfzfayfayjnc1za0jxsnxp5fsa6d06kn69wyr8a"; + }; + + nativeBuildInputs = [ installShellFiles ]; + + buildInputs = [ python3 ]; + + installPhase = '' + runHook preInstall + mkdir -p $out/bin + cp ${pname} $out/bin + installManPage flawfinder.1 + runHook postInstall + ''; + + meta = with lib; { + description = "Tool to examines C/C++ source code for security flaws"; + homepage = "https://dwheeler.com/flawfinder/"; + license = with licenses; [ gpl2Only ]; + maintainers = with maintainers; [ fab ]; + }; +} |