1{
2 lib,
3 buildGoModule,
4 fetchFromGitHub,
5}:
6
7buildGoModule rec {
8 pname = "ruler";
9 version = "2.4.1";
10
11 src = fetchFromGitHub {
12 owner = "sensepost";
13 repo = "ruler";
14 tag = version;
15 hash = "sha256-cEYpK1LB9b65xr6MCMax1vUtSWefjJdXNs4sPgx65d0=";
16 };
17
18 vendorHash = "sha256-ITd3cvZmRBWK3922dDRvNHNH8KzHoVfIQI6S318ibxA=";
19
20 ldflags = [
21 "-w"
22 "-s"
23 ];
24
25 meta = {
26 description = "Tool to abuse Exchange services";
27 homepage = "https://github.com/sensepost/ruler";
28 changelog = "https://github.com/sensepost/ruler/releases/tag/${version}";
29 license = with lib.licenses; [ cc-by-nc-40 ];
30 maintainers = with lib.maintainers; [ fab ];
31 mainProgram = "ruler";
32 };
33}