nixpkgs/pkgs/tools/security/cloudfox/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

36 lines
825 B
Nix

{ lib
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "cloudfox";
version = "1.13.4";
src = fetchFromGitHub {
owner = "BishopFox";
repo = "cloudfox";
rev = "refs/tags/v${version}";
hash = "sha256-nN/gSvAwKjfZulqH4caGoJmzlY0ik8JrFReuvYWwZTE=";
};
vendorHash = "sha256-aRbGBEci3QT1mH+yaOUVynPysJ1za6CaoLGppJaa94c=";
ldflags = [
"-w"
"-s"
];
# Some tests are failing because of wrong filename/path
doCheck = false;
meta = with lib; {
description = "Tool for situational awareness of cloud penetration tests";
mainProgram = "cloudfox";
homepage = "https://github.com/BishopFox/cloudfox";
changelog = "https://github.com/BishopFox/cloudfox/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}