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

buildGoModule rec {
  pname = "go365";
  version = "1.4";

  src = fetchFromGitHub {
    owner = "optiv";
    repo = "Go365";
    rev = version;
    sha256 = "0dh89hf00fr62gjdw2lb1ncdxd26nvlsh2s0i6981bp8xfg2pk5r";
  };

  vendorSha256 = "0fx2966xfzmi8yszw1cq6ind3i2dvacdwfs029v3bq0n8bvbm3r2";

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

  meta = with lib; {
    description = "Office 365 enumeration tool";
    homepage = "https://github.com/optiv/Go365";
    license = with licenses; [ mit ];
    maintainers = with maintainers; [ fab ];
  };
}