diff options
author | Fabian Affolter <mail@fabian-affolter.ch> | 2021-09-03 21:35:28 +0200 |
---|---|---|
committer | Raphael Megzari <raphael@megzari.com> | 2021-09-04 07:46:25 +0900 |
commit | 6c4ac973a3d3f8bcc31daf114061a8afdc35bfd9 (patch) | |
tree | cac6e1a132aed37aae0c32f8c2864d2ff08753bb /pkgs/tools/security/nmap-formatter | |
parent | 57d17c2abe0b109a69b1efdfda726204a7eab818 (diff) |
nmap-formatter: init at 0.2.1
Diffstat (limited to 'pkgs/tools/security/nmap-formatter')
-rw-r--r-- | pkgs/tools/security/nmap-formatter/default.nix | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/tools/security/nmap-formatter/default.nix b/pkgs/tools/security/nmap-formatter/default.nix new file mode 100644 index 0000000000000..3f3835b9649dd --- /dev/null +++ b/pkgs/tools/security/nmap-formatter/default.nix @@ -0,0 +1,31 @@ +{ lib +, buildGoModule +, fetchFromGitHub +}: + +buildGoModule rec { + pname = "nmap-formatter"; + version = "0.2.1"; + + src = fetchFromGitHub { + owner = "vdjagilev"; + repo = pname; + rev = "v${version}"; + sha256 = "1r8l7ajcb436b60ir6xgy53wafk6rw1cil326yg6mhcngz9sazbk"; + }; + + vendorSha256 = "0c1b4iw28qj8iq55lg32xqw69jjdv5ial495j0gz68s17kydbwhb"; + + postPatch = '' + # Fix hard-coded release + substituteInPlace cmd/root.go \ + --replace "0.2.0" "${version}" + ''; + + meta = with lib; { + description = "Tool that allows you to convert nmap output"; + homepage = "https://github.com/vdjagilev/nmap-formatter"; + license = licenses.mit; + maintainers = with maintainers; [ fab ]; + }; +} |