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
{ lib
2
, buildGoModule
3
, fetchFromGitHub
0
4
, pkg-config
5
, yara
6
}:
···
16
hash = "sha256-wlGZTMCJE6Ki5/6R6J9EJP06/S125BNNd/jNPYGwKNw=";
17
};
18
19
-
vendorHash = "sha256-qZkt5WwicDXrExwMT0tCO+FZgClIHhrVtMR8xNsdAaQ=";
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
20
21
nativeBuildInputs = [
22
pkg-config
···
1
{ lib
2
, buildGoModule
3
, fetchFromGitHub
4
+
, fetchpatch
5
, pkg-config
6
, yara
7
}:
···
17
hash = "sha256-wlGZTMCJE6Ki5/6R6J9EJP06/S125BNNd/jNPYGwKNw=";
18
};
19
20
+
patches = [
21
+
# The following two patches come from https://github.com/spyre-project/spyre/pull/75
22
+
# and improve Darwin support.
23
+
(fetchpatch {
24
+
name = "syscall-to-x-sys-unix.patch";
25
+
url = "https://github.com/spyre-project/spyre/commit/8f08daf030c847de453613eb2eb1befdb7300921.patch";
26
+
hash = "sha256-oy8Y85IubJVQrt0kmGA1hidZapgCw2aB6F/gT7uQ6KA=";
27
+
})
28
+
(fetchpatch {
29
+
name = "darwin-skip-dir.patch";
30
+
url = "https://github.com/spyre-project/spyre/commit/12dea550bc4f3275f8f406c19216ad140733a6af.patch";
31
+
hash = "sha256-BXLGOshyGnllbkvsbbmdnqvRHwycrjI52oGWBoXXgL0=";
32
+
})
33
+
];
34
+
35
+
vendorHash = "sha256-aoeAnyFotKWWaRZQsgQPwwmhih/1zfL9eBV/2r1VPBM=";
36
37
nativeBuildInputs = [
38
pkg-config