Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, stdenv 3, buildGoModule 4, fetchFromGitHub 5}: 6 7buildGoModule rec { 8 pname = "go365"; 9 version = "2.0"; 10 11 src = fetchFromGitHub { 12 owner = "optiv"; 13 repo = "Go365"; 14 rev = "refs/tags/v${version}"; 15 hash = "sha256-jmsbZrqc6XogUhuEWcU59v88id2uLqN/68URwylzWZI="; 16 }; 17 18 vendorHash = "sha256-Io+69kIW4DV2EkA73pjaTcTRbDSYBf61R7F+141Jojs="; 19 20 postInstall = lib.optionalString (!stdenv.isDarwin) '' 21 mv $out/bin/Go365 $out/bin/$pname 22 ''; 23 24 meta = with lib; { 25 description = "Office 365 enumeration tool"; 26 homepage = "https://github.com/optiv/Go365"; 27 changelog = "https://github.com/optiv/Go365/releases/tag/v${version}"; 28 license = with licenses; [ mit ]; 29 maintainers = with maintainers; [ fab ]; 30 mainProgram = "Go365"; 31 }; 32}