about summary refs log tree commit diff
path: root/nixpkgs/pkgs/tools/security/enumerepo/default.nix
blob: 3c6849af44ff0c5a1ce7faed6e9c976282b6341e (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
{ lib
, buildGoModule
, fetchFromGitHub
}:

buildGoModule rec {
  pname = "enumerepo";
  version = "1.0.0";

  src = fetchFromGitHub {
    owner = "trickest";
    repo = pname;
    rev = "refs/tags/v${version}";
    hash = "sha256-PWWx6b+fttxKxMtuHAYPTeEsta0E6+IQ1DSKO6c7Jdc=";
  };

  vendorHash = "sha256-Dt3QS1Rm/20Yitgg4zbBcWQXV8mTlpNbzc/k4DaTuQc=";

  ldflags = [
    "-s"
    "-w"
  ];

  meta = with lib; {
    description = "Tool to list all public repositories for (valid) GitHub usernames";
    mainProgram = "enumerepo";
    homepage = "https://github.com/trickest/enumerepo";
    changelog = "https://github.com/trickest/enumerepo/releases/tag/v${version}";
    license = licenses.mit;
    maintainers = with maintainers; [ fab ];
  };
}