summary refs log tree commit diff
diff options
context:
space:
mode:
authorFabian Affolter <mail@fabian-affolter.ch>2021-03-24 22:46:33 +0100
committerFabian Affolter <mail@fabian-affolter.ch>2021-03-24 22:46:33 +0100
commit6ab5277729d07116fcb92e50912712d4728caa53 (patch)
tree3857121b6cbf32a085543e47352949c0cf299e7c
parent5faa02940a9cdd002f7bcf1ab85f7e4cba1077ba (diff)
downloadnixpkgs-6ab5277729d07116fcb92e50912712d4728caa53.tar
nixpkgs-6ab5277729d07116fcb92e50912712d4728caa53.tar.gz
nixpkgs-6ab5277729d07116fcb92e50912712d4728caa53.tar.bz2
nixpkgs-6ab5277729d07116fcb92e50912712d4728caa53.tar.lz
nixpkgs-6ab5277729d07116fcb92e50912712d4728caa53.tar.xz
nixpkgs-6ab5277729d07116fcb92e50912712d4728caa53.tar.zst
nixpkgs-6ab5277729d07116fcb92e50912712d4728caa53.zip
flawfinder: init at 2.0.15
-rw-r--r--pkgs/development/tools/flawfinder/default.nix35
-rw-r--r--pkgs/top-level/all-packages.nix2
2 files changed, 37 insertions, 0 deletions
diff --git a/pkgs/development/tools/flawfinder/default.nix b/pkgs/development/tools/flawfinder/default.nix
new file mode 100644
index 00000000000..28805b4abe4
--- /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 ];
+  };
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index eb66cdde0ee..282bb16522d 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -4403,6 +4403,8 @@ in
 
   flamegraph = callPackage ../development/tools/flamegraph { };
 
+  flawfinder = callPackage ../development/tools/flawfinder { };
+
   flips = callPackage ../tools/compression/flips { };
 
   fmbt = callPackage ../development/tools/fmbt {