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 10:40:47 +02:00
{ lib
2022-01-14 09:25:16 +01:00
, stdenv
2021-09-29 10:40:47 +02:00
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "go365";
version = "2.0";
2021-09-29 10:40:47 +02:00
src = fetchFromGitHub {
owner = "optiv";
repo = "Go365";
rev = "refs/tags/v${version}";
hash = "sha256-jmsbZrqc6XogUhuEWcU59v88id2uLqN/68URwylzWZI=";
2021-09-29 10:40:47 +02:00
};
vendorHash = "sha256-Io+69kIW4DV2EkA73pjaTcTRbDSYBf61R7F+141Jojs=";
2021-09-29 10:40:47 +02:00
2022-01-14 09:25:16 +01:00
postInstall = lib.optionalString (!stdenv.isDarwin) ''
2021-09-29 10:40:47 +02: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 10:40:47 +02:00
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
mainProgram = "Go365";
2021-09-29 10:40:47 +02:00
};
}