nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildGoModule,
4 fetchFromGitHub,
5}:
6
7buildGoModule rec {
8 pname = "grimoire";
9 version = "0.1.0";
10
11 src = fetchFromGitHub {
12 owner = "DataDog";
13 repo = "grimoire";
14 tag = "v${version}";
15 hash = "sha256-V6j6PBoZqTvGfYSbpxd0vOyTb/i2EV8pDVSuZeq1s5o=";
16 };
17
18 vendorHash = "sha256-K1kVXSfIjBpuJ7TyTCtaWj6jWRXPQdBvUlf5LC60tj0=";
19
20 subPackages = [ "cmd/grimoire/" ];
21
22 ldflags = [
23 "-s"
24 "-w"
25 ];
26
27 meta = {
28 description = "Tool to generate datasets of cloud audit logs for common attacks";
29 homepage = "https://github.com/DataDog/grimoire";
30 changelog = "https://github.com/DataDog/grimoire/releases/tag/v${version}";
31 license = lib.licenses.asl20;
32 maintainers = with lib.maintainers; [ fab ];
33 mainProgram = "grimoire";
34 };
35}