sqlite_orm: 1.9 -> 1.9.1 (#379250)
[NixPkgs.git] / pkgs / by-name / sp / spyre / package.nix
blobc9296162f01426f2555860a84a3be8f85dc35334
2   lib,
3   buildGoModule,
4   fetchFromGitHub,
5   fetchpatch,
6   pkg-config,
7   yara,
8 }:
10 buildGoModule rec {
11   pname = "spyre";
12   version = "1.2.5";
14   src = fetchFromGitHub {
15     owner = "spyre-project";
16     repo = pname;
17     rev = "v${version}";
18     hash = "sha256-wlGZTMCJE6Ki5/6R6J9EJP06/S125BNNd/jNPYGwKNw=";
19   };
21   patches = [
22     # The following two patches come from https://github.com/spyre-project/spyre/pull/75
23     # and improve Darwin support.
24     (fetchpatch {
25       name = "syscall-to-x-sys-unix.patch";
26       url = "https://github.com/spyre-project/spyre/commit/8f08daf030c847de453613eb2eb1befdb7300921.patch";
27       hash = "sha256-oy8Y85IubJVQrt0kmGA1hidZapgCw2aB6F/gT7uQ6KA=";
28     })
29     (fetchpatch {
30       name = "darwin-skip-dir.patch";
31       url = "https://github.com/spyre-project/spyre/commit/12dea550bc4f3275f8f406c19216ad140733a6af.patch";
32       hash = "sha256-BXLGOshyGnllbkvsbbmdnqvRHwycrjI52oGWBoXXgL0=";
33     })
34   ];
36   vendorHash = "sha256-aoeAnyFotKWWaRZQsgQPwwmhih/1zfL9eBV/2r1VPBM=";
38   nativeBuildInputs = [
39     pkg-config
40   ];
42   buildInputs = [
43     yara
44   ];
46   meta = with lib; {
47     description = "YARA-based IOC scanner";
48     mainProgram = "spyre";
49     homepage = "https://github.com/spyre-project/spyre";
50     license = with licenses; [ lgpl3Plus ];
51     maintainers = with maintainers; [ fab ];
52   };