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

buildGoModule rec {
  pname = "adreaper";
  version = "1.1";

  src = fetchFromGitHub {
    owner = "AidenPearce369";
    repo = "ADReaper";
    rev = "ADReaperv${version}";
    sha256 = "sha256-+FCb5TV9MUcRyex2M4rn2RhcIsXQFbtm1T4r7MpcRQs=";
  };

  vendorSha256 = "sha256-lU39kj/uz0l7Rodsu6+UMv2o579eu1KUbutUNZni7bM=";

  postInstall = lib.optionalString (!stdenv.isDarwin) ''
    mv $out/bin/ADReaper $out/bin/$pname
  '';

  meta = with lib; {
    description = "Enumeration tool for Windows Active Directories";
    homepage = "https://github.com/AidenPearce369/ADReaper";
    # Upstream doesn't have a license yet
    # https://github.com/AidenPearce369/ADReaper/issues/2
    license = with licenses; [ unfree ];
    maintainers = with maintainers; [ fab ];
    mainProgram = "ADReaper";
  };
}