nixpkgs/pkgs/tools/security/go365/default.nix

31 lines
658 B
Nix
Raw Normal View History

2021-09-29 08:40:47 +00:00
{ lib
2022-01-14 08:25:16 +00:00
, stdenv
2021-09-29 08:40:47 +00:00
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "go365";
version = "1.4";
src = fetchFromGitHub {
owner = "optiv";
repo = "Go365";
rev = version;
sha256 = "0dh89hf00fr62gjdw2lb1ncdxd26nvlsh2s0i6981bp8xfg2pk5r";
};
vendorSha256 = "0fx2966xfzmi8yszw1cq6ind3i2dvacdwfs029v3bq0n8bvbm3r2";
2022-01-14 08:25:16 +00:00
postInstall = lib.optionalString (!stdenv.isDarwin) ''
2021-09-29 08:40:47 +00:00
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 ];
};
}