tangled
alpha
login
or
join now
tjh.dev
/
nixpkgs
Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
0
fork
atom
overview
issues
pulls
pipelines
spyre: pull in patches to fix build on Darwin
Theodore Ni
2 years ago
9ec00a91
cac6d289
+17
-1
1 changed file
expand all
collapse all
unified
split
pkgs
tools
security
spyre
default.nix
+17
-1
pkgs/tools/security/spyre/default.nix
···
1
1
{ lib
2
2
, buildGoModule
3
3
, fetchFromGitHub
4
4
+
, fetchpatch
4
5
, pkg-config
5
6
, yara
6
7
}:
···
16
17
hash = "sha256-wlGZTMCJE6Ki5/6R6J9EJP06/S125BNNd/jNPYGwKNw=";
17
18
};
18
19
19
19
-
vendorHash = "sha256-qZkt5WwicDXrExwMT0tCO+FZgClIHhrVtMR8xNsdAaQ=";
20
20
+
patches = [
21
21
+
# The following two patches come from https://github.com/spyre-project/spyre/pull/75
22
22
+
# and improve Darwin support.
23
23
+
(fetchpatch {
24
24
+
name = "syscall-to-x-sys-unix.patch";
25
25
+
url = "https://github.com/spyre-project/spyre/commit/8f08daf030c847de453613eb2eb1befdb7300921.patch";
26
26
+
hash = "sha256-oy8Y85IubJVQrt0kmGA1hidZapgCw2aB6F/gT7uQ6KA=";
27
27
+
})
28
28
+
(fetchpatch {
29
29
+
name = "darwin-skip-dir.patch";
30
30
+
url = "https://github.com/spyre-project/spyre/commit/12dea550bc4f3275f8f406c19216ad140733a6af.patch";
31
31
+
hash = "sha256-BXLGOshyGnllbkvsbbmdnqvRHwycrjI52oGWBoXXgL0=";
32
32
+
})
33
33
+
];
34
34
+
35
35
+
vendorHash = "sha256-aoeAnyFotKWWaRZQsgQPwwmhih/1zfL9eBV/2r1VPBM=";
20
36
21
37
nativeBuildInputs = [
22
38
pkg-config