diff options
-rw-r--r-- | overlays/certspotter/default.nix | 15 | ||||
-rw-r--r-- | overlays/certspotter/deps.nix | 73 |
2 files changed, 88 insertions, 0 deletions
diff --git a/overlays/certspotter/default.nix b/overlays/certspotter/default.nix new file mode 100644 index 00000000..3cfd5346 --- /dev/null +++ b/overlays/certspotter/default.nix | |||
@@ -0,0 +1,15 @@ | |||
1 | { prev, ... }: { | ||
2 | certspotter = prev.buildGoPackage rec { | ||
3 | pname = "certspotter"; | ||
4 | version = "0.11"; | ||
5 | |||
6 | src = (prev.fetchFromGitHub { | ||
7 | owner = "SSLMate"; | ||
8 | repo = "certspotter"; | ||
9 | rev = version; | ||
10 | hash = "sha256-KTbEmaKaqEIqMaLFM28jb8ehjtlXqPGkNJ2sxHrVrI8="; | ||
11 | }); | ||
12 | goPackagePath = "cmd/certspotter"; | ||
13 | goDeps = ./deps.nix; | ||
14 | }; | ||
15 | } | ||
diff --git a/overlays/certspotter/deps.nix b/overlays/certspotter/deps.nix new file mode 100644 index 00000000..ae05dd30 --- /dev/null +++ b/overlays/certspotter/deps.nix | |||
@@ -0,0 +1,73 @@ | |||
1 | # file generated from go.mod using vgo2nix (https://github.com/nix-community/vgo2nix) | ||
2 | [ | ||
3 | { | ||
4 | goPackagePath = "github.com/mreiferson/go-httpclient"; | ||
5 | fetch = { | ||
6 | type = "git"; | ||
7 | url = "https://github.com/mreiferson/go-httpclient"; | ||
8 | rev = "5e475fde3a4d"; | ||
9 | sha256 = "13s8va5zlbmh5lgxpkdrcxvbqkbxszjvf27p1njv75q4jk8g5vhq"; | ||
10 | moduleDir = ""; | ||
11 | }; | ||
12 | } | ||
13 | { | ||
14 | goPackagePath = "golang.org/x/net"; | ||
15 | fetch = { | ||
16 | type = "git"; | ||
17 | url = "https://go.googlesource.com/net"; | ||
18 | rev = "de3da57026de"; | ||
19 | sha256 = "0q14qjy8s4nr08jk324c8msyawyv2ji8s6bn19fh8bjcnjxhfic0"; | ||
20 | moduleDir = ""; | ||
21 | }; | ||
22 | } | ||
23 | { | ||
24 | goPackagePath = "golang.org/x/sys"; | ||
25 | fetch = { | ||
26 | type = "git"; | ||
27 | url = "https://go.googlesource.com/sys"; | ||
28 | rev = "1d35b9e2eb4e"; | ||
29 | sha256 = "09xmnw6hhpqnakm99xxigg0znbx46f084lpacz67p5rbcdngjxis"; | ||
30 | moduleDir = ""; | ||
31 | }; | ||
32 | } | ||
33 | { | ||
34 | goPackagePath = "golang.org/x/term"; | ||
35 | fetch = { | ||
36 | type = "git"; | ||
37 | url = "https://go.googlesource.com/term"; | ||
38 | rev = "03fcf44c2211"; | ||
39 | sha256 = "0aw5lgwq5w5kvwfa3jl7l83p9c827ksy4a99dqzzsqxvmk2zdi8f"; | ||
40 | moduleDir = ""; | ||
41 | }; | ||
42 | } | ||
43 | { | ||
44 | goPackagePath = "golang.org/x/text"; | ||
45 | fetch = { | ||
46 | type = "git"; | ||
47 | url = "https://go.googlesource.com/text"; | ||
48 | rev = "v0.3.7"; | ||
49 | sha256 = "0xkw0qvfjyifdqd25y7nxdqkdh92inymw3q7841nricc9s01p4jy"; | ||
50 | moduleDir = ""; | ||
51 | }; | ||
52 | } | ||
53 | { | ||
54 | goPackagePath = "golang.org/x/tools"; | ||
55 | fetch = { | ||
56 | type = "git"; | ||
57 | url = "https://go.googlesource.com/tools"; | ||
58 | rev = "90fa682c2a6e"; | ||
59 | sha256 = "03ic2xsy51jw9749wl7gszdbz99iijbd2bckgygl6cm9w5m364ak"; | ||
60 | moduleDir = ""; | ||
61 | }; | ||
62 | } | ||
63 | { | ||
64 | goPackagePath = "software.sslmate.com/src/certspotter"; | ||
65 | fetch = { | ||
66 | type = "git"; | ||
67 | url = "https://software.sslmate.com/src/certspotter.git"; | ||
68 | rev = "54f34077d3be"; | ||
69 | sha256 = "13xcsmxc9b4x6jjg3a2pv67a3ivg4dpk7id264m45a4slacw8di9"; | ||
70 | moduleDir = ""; | ||
71 | }; | ||
72 | } | ||
73 | ] | ||