mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 07:34:11 +00:00
edbd277ddc
The package cannot be installed otherwise. Signed-off-by: Julien DOCHE <julien.doche@gmail.com>
37 lines
803 B
Nix
37 lines
803 B
Nix
{ 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 ];
|
|
platforms = platforms.all;
|
|
};
|
|
}
|