nixpkgs/pkgs/development/tools/flawfinder/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

28 lines
718 B
Nix

{ lib
, fetchurl
, python3
}:
python3.pkgs.buildPythonApplication rec {
pname = "flawfinder";
version = "2.0.19";
src = fetchurl {
url = "https://dwheeler.com/flawfinder/flawfinder-${version}.tar.gz";
sha256 = "sha256-/lUJgdNwq/oKKWcTRswLA4Ipqb2QsjnqsPAfEiEt9hg=";
};
# Project is using a combination of bash/Python for the tests
doCheck = false;
pythonImportsCheck = [ "flawfinder" ];
meta = with lib; {
description = "Tool to examines C/C++ source code for security flaws";
mainProgram = "flawfinder";
homepage = "https://dwheeler.com/flawfinder/";
license = with licenses; [ gpl2Only ];
maintainers = with maintainers; [ fab ];
platforms = platforms.all;
};
}