1{ lib
2, buildGoModule
3, fetchFromGitHub
4, pkg-config
5, yara
6}:
7
8buildGoModule rec {
9 pname = "spyre";
10 version = "1.2.4";
11
12 src = fetchFromGitHub {
13 owner = "spyre-project";
14 repo = pname;
15 rev = "v${version}";
16 sha256 = "sha256-408UOY7kvukMYOVqQfpugk6Z+LNQV9XyfJirKyBRWd4=";
17 };
18
19 vendorSha256 = "sha256-qZkt5WwicDXrExwMT0tCO+FZgClIHhrVtMR8xNsdAaQ=";
20
21 nativeBuildInputs = [
22 pkg-config
23 ];
24
25 buildInputs = [
26 yara
27 ];
28
29 meta = with lib; {
30 description = "YARA-based IOC scanner";
31 homepage = "https://github.com/spyre-project/spyre";
32 license = with licenses; [ lgpl3Plus ];
33 maintainers = with maintainers; [ fab ];
34 };
35}