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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

33 lines
770 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 = "2.0";
2021-09-29 08:40:47 +00:00
src = fetchFromGitHub {
owner = "optiv";
repo = "Go365";
rev = "refs/tags/v${version}";
hash = "sha256-jmsbZrqc6XogUhuEWcU59v88id2uLqN/68URwylzWZI=";
2021-09-29 08:40:47 +00:00
};
vendorHash = "sha256-Io+69kIW4DV2EkA73pjaTcTRbDSYBf61R7F+141Jojs=";
2021-09-29 08:40:47 +00:00
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";
changelog = "https://github.com/optiv/Go365/releases/tag/v${version}";
2021-09-29 08:40:47 +00:00
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
mainProgram = "Go365";
2021-09-29 08:40:47 +00:00
};
}