From 1f1b4b79c6af09e0ccadcb3152419de35509d154 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 24 Apr 2024 09:58:54 +0200 Subject: [PATCH] nray: init at 1.1.0 Distributed port scanner https://github.com/nray-scanner/nray --- pkgs/by-name/nr/nray/package.nix | 37 ++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 pkgs/by-name/nr/nray/package.nix diff --git a/pkgs/by-name/nr/nray/package.nix b/pkgs/by-name/nr/nray/package.nix new file mode 100644 index 000000000000..1641e1c4df87 --- /dev/null +++ b/pkgs/by-name/nr/nray/package.nix @@ -0,0 +1,37 @@ +{ + lib, + buildGoModule, + fetchFromGitHub, +}: + +buildGoModule rec { + pname = "nray"; + version = "1.1.0"; + + src = fetchFromGitHub { + owner = "nray-scanner"; + repo = "nray"; + rev = "refs/tags/v${version}"; + hash = "sha256-N78Bm/Le+pbA8hvDaUbjQpcdRlM0RKXnXyjOB8Nz3AE="; + }; + + vendorHash = "sha256-hCFFMSaT73Wx54KayuFc2xJRGp0p10Pn93N8t4Xad8g="; + + ldflags = [ + "-s" + "-w" + ]; + + env = { + CGO_CFLAGS = "-Wno-undef-prefix"; + }; + + meta = with lib; { + description = "Distributed port scanner"; + homepage = "https://github.com/nray-scanner/nray"; + changelog = "https://github.com/nray-scanner/nray/releases/tag/v${version}"; + license = licenses.gpl3Only; + maintainers = with maintainers; [ fab ]; + mainProgram = "nray"; + }; +}