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

32 lines
770 B
Nix

{ lib
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "gobuster";
version = "3.6.0";
src = fetchFromGitHub {
owner = "OJ";
repo = "gobuster";
rev = "refs/tags/v${version}";
hash = "sha256-LZL9Zje2u0v6iAQinfjflvusV57ys5J5Il6Q7br3Suc=";
};
vendorHash = "sha256-w+G5PsWXhKipjYIHtz633sia+Wg9FSFVpcugEl8fp0E=";
ldflags = [
"-s"
"-w"
];
meta = with lib; {
description = "Tool used to brute-force URIs, DNS subdomains, Virtual Host names on target web servers";
mainProgram = "gobuster";
homepage = "https://github.com/OJ/gobuster";
changelog = "https://github.com/OJ/gobuster/releases/tag/v${version}";
license = licenses.asl20;
maintainers = with maintainers; [ fab pamplemousse ];
};
}