depot/third_party/nixpkgs/pkgs/tools/security/feroxbuster/default.nix
Default email a3d4720129 Project import generated by Copybara.
GitOrigin-RevId: e182da8622a354d44c39b3d7a542dc12cd7baa5f
2022-12-28 22:21:41 +01:00

52 lines
1 KiB
Nix

{ lib
, stdenv
, fetchFromGitHub
, openssl
, pkg-config
, rustPlatform
, Security
}:
rustPlatform.buildRustPackage rec {
pname = "feroxbuster";
version = "2.7.1";
src = fetchFromGitHub {
owner = "epi052";
repo = pname;
rev = version;
hash = "sha256-B6FeY5pWW5+y/0HlVedkm8ol2z9GXgEYe5j7/uMhqsw=";
};
# disable linker overrides on aarch64-linux
postPatch = ''
rm .cargo/config
'';
cargoSha256 = "sha256-OFgt8yu2wlvkP/wjlmRRl8UyD9MUx9/0Rcs6K8jLkjo=";
OPENSSL_NO_VENDOR = true;
nativeBuildInputs = [
pkg-config
];
buildInputs = [
openssl
] ++ lib.optionals stdenv.isDarwin [
Security
];
# Tests require network access
doCheck = false;
meta = with lib; {
description = "Fast, simple, recursive content discovery tool";
homepage = "https://github.com/epi052/feroxbuster";
changelog = "https://github.com/epi052/feroxbuster/releases/tag/v${version}";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
platforms = platforms.unix;
};
}