about summary refs log tree commit diff
path: root/pkgs/by-name/nr/nray/package.nix
blob: 1641e1c4df874e41a423d9927d088a9fae98c781 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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";
  };
}