depot/third_party/nixpkgs/pkgs/by-name/ha/havn/package.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

37 lines
1 KiB
Nix

{
lib,
fetchFromGitHub,
rustPlatform,
}:
rustPlatform.buildRustPackage rec {
pname = "havn";
version = "0.1.11";
src = fetchFromGitHub {
owner = "mrjackwills";
repo = "havn";
rev = "refs/tags/v${version}";
hash = "sha256-iotSSKId2y3Y7Dh8iSW1/y3xDbXHHPl6RQ3uA/+JdE8=";
};
cargoHash = "sha256-Tec1YeP1zwE8nurQOYxa9hzGBy3uxkjDUFlh0BppUTo=";
checkFlags = [
# Skip tests that require network access
"--skip=scanner::tests::test_scanner_1000_80_443"
"--skip=scanner::tests::test_scanner_all_80"
"--skip=scanner::tests::test_scanner_port_80"
"--skip=terminal::print::tests::test_terminal_monochrome_false"
];
meta = {
homepage = "https://github.com/mrjackwills/havn";
description = "A fast configurable port scanner with reasonable defaults";
changelog = "https://github.com/mrjackwills/havn/blob/v${version}/CHANGELOG.md";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ luftmensch-luftmensch ];
mainProgram = "havn";
platforms = lib.platforms.linux;
};
}