nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildGoModule,
4 fetchFromGitHub,
5}:
6
7buildGoModule rec {
8 pname = "rita";
9 version = "4.8.1";
10
11 src = fetchFromGitHub {
12 owner = "activecm";
13 repo = "rita";
14 tag = "v${version}";
15 hash = "sha256-By0JvQ4LTm+NEnRMadE1x2PiiYqnJQCsF3Fy+gHulXs=";
16 };
17
18 vendorHash = "sha256-KyC7VPgWlgKD6KWWRo3hFQHl2HjTub+VSMtJCpYE6Zk=";
19
20 ldflags = [
21 "-s"
22 "-w"
23 "-X=github.com/activecm/rita/config.Version=${version}"
24 "-X=github.com/activecm/rita/config.ExactVersion=${version}"
25 ];
26
27 meta = {
28 description = "Framework for detecting command and control communication through network traffic analysis";
29 homepage = "https://github.com/activecm/rita";
30 changelog = "https://github.com/activecm/rita/releases/tag/v${version}";
31 license = lib.licenses.gpl3Only;
32 maintainers = with lib.maintainers; [ fab ];
33 mainProgram = "rita";
34 };
35}