git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #133157 from figsoda/dnspeep

dnspeep: init at 0.1.2

commitdc547ee75e705982e4c3c2b040f58b026c1c4241 authorSandro <sandro.jaeckel@gmail.com> dateWed 11 Aug 2021, 13:26 (5 years ago) parent7548556bfbfab5
3 files changed+694
pkgs/tools/security/dnspeep/Cargo.lock+660 pkgs/tools/security/dnspeep/default.nix+32 pkgs/top-level/all-packages.nix+2
pkgs/tools/security/dnspeep/Cargo.locknew file+660
@@ -0,0 +1,660 @@
1+# This file is automatically @generated by Cargo.
2+# It is not intended for manual editing.
3+[[package]]
4+name = "aho-corasick"
5+version = "0.7.15"
6+source = "registry+https://github.com/rust-lang/crates.io-index"
7+checksum = "7404febffaa47dac81aa44dba71523c9d069b1bdc50a77db41195149e17f68e5"
8+dependencies = [
9+ "memchr",
10+]
11+
12+[[package]]
13+name = "autocfg"
14+version = "1.0.1"
15+source = "registry+https://github.com/rust-lang/crates.io-index"
16+checksum = "cdb031dd78e28731d87d56cc8ffef4a8f36ca26c38fe2de700543e627f8a464a"
17+
18+[[package]]
19+name = "bitflags"
20+version = "1.2.1"
21+source = "registry+https://github.com/rust-lang/crates.io-index"
22+checksum = "cf1de2fe8c75bc145a2f577add951f8134889b4795d47466a54a5c846d691693"
23+
24+[[package]]
25+name = "byteorder"
26+version = "1.4.3"
27+source = "registry+https://github.com/rust-lang/crates.io-index"
28+checksum = "14c189c53d098945499cdfa7ecc63567cf3886b3332b312a5b4585d8d3a6a610"
29+
30+[[package]]
31+name = "bytes"
32+version = "0.5.6"
33+source = "registry+https://github.com/rust-lang/crates.io-index"
34+checksum = "0e4cec68f03f32e44924783795810fa50a7035d8c8ebe78580ad7e6c703fba38"
35+
36+[[package]]
37+name = "bytes"
38+version = "1.0.1"
39+source = "registry+https://github.com/rust-lang/crates.io-index"
40+checksum = "b700ce4376041dcd0a327fd0097c41095743c4c8af8887265942faf1100bd040"
41+
42+[[package]]
43+name = "cfg-if"
44+version = "0.1.10"
45+source = "registry+https://github.com/rust-lang/crates.io-index"
46+checksum = "4785bdd1c96b2a846b2bd7cc02e86b6b3dbf14e7e53446c4f54c92a361040822"
47+
48+[[package]]
49+name = "cfg-if"
50+version = "1.0.0"
51+source = "registry+https://github.com/rust-lang/crates.io-index"
52+checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
53+
54+[[package]]
55+name = "chrono"
56+version = "0.4.19"
57+source = "registry+https://github.com/rust-lang/crates.io-index"
58+checksum = "670ad68c9088c2a963aaa298cb369688cf3f9465ce5e2d4ca10e6e0098a1ce73"
59+dependencies = [
60+ "libc",
61+ "num-integer",
62+ "num-traits",
63+ "time",
64+ "winapi 0.3.9",
65+]
66+
67+[[package]]
68+name = "dns-message-parser"
69+version = "0.5.0"
70+source = "registry+https://github.com/rust-lang/crates.io-index"
71+checksum = "8e859c9ca137be3407a445a34eda3395aeef5aae12cd47d46a7fffba54460072"
72+dependencies = [
73+ "bytes 1.0.1",
74+ "hex",
75+ "thiserror",
76+]
77+
78+[[package]]
79+name = "dnspeep"
80+version = "0.1.2"
81+dependencies = [
82+ "bytes 1.0.1",
83+ "chrono",
84+ "dns-message-parser",
85+ "etherparse",
86+ "eyre",
87+ "futures",
88+ "getopts",
89+ "hex",
90+ "libc",
91+ "pcap",
92+ "tokio",
93+]
94+
95+[[package]]
96+name = "etherparse"
97+version = "0.9.0"
98+source = "registry+https://github.com/rust-lang/crates.io-index"
99+checksum = "2fa20922281f9ee5ffcda45e80d56085829279f1270f79fbabc39809a4354807"
100+dependencies = [
101+ "byteorder",
102+]
103+
104+[[package]]
105+name = "eyre"
106+version = "0.6.5"
107+source = "registry+https://github.com/rust-lang/crates.io-index"
108+checksum = "221239d1d5ea86bf5d6f91c9d6bc3646ffe471b08ff9b0f91c44f115ac969d2b"
109+dependencies = [
110+ "indenter",
111+ "once_cell",
112+]
113+
114+[[package]]
115+name = "fnv"
116+version = "1.0.7"
117+source = "registry+https://github.com/rust-lang/crates.io-index"
118+checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1"
119+
120+[[package]]
121+name = "fuchsia-zircon"
122+version = "0.3.3"
123+source = "registry+https://github.com/rust-lang/crates.io-index"
124+checksum = "2e9763c69ebaae630ba35f74888db465e49e259ba1bc0eda7d06f4a067615d82"
125+dependencies = [
126+ "bitflags",
127+ "fuchsia-zircon-sys",
128+]
129+
130+[[package]]
131+name = "fuchsia-zircon-sys"
132+version = "0.3.3"
133+source = "registry+https://github.com/rust-lang/crates.io-index"
134+checksum = "3dcaa9ae7725d12cdb85b3ad99a434db70b468c09ded17e012d86b5c1010f7a7"
135+
136+[[package]]
137+name = "futures"
138+version = "0.3.13"
139+source = "registry+https://github.com/rust-lang/crates.io-index"
140+checksum = "7f55667319111d593ba876406af7c409c0ebb44dc4be6132a783ccf163ea14c1"
141+dependencies = [
142+ "futures-channel",
143+ "futures-core",
144+ "futures-executor",
145+ "futures-io",
146+ "futures-sink",
147+ "futures-task",
148+ "futures-util",
149+]
150+
151+[[package]]
152+name = "futures-channel"
153+version = "0.3.13"
154+source = "registry+https://github.com/rust-lang/crates.io-index"
155+checksum = "8c2dd2df839b57db9ab69c2c9d8f3e8c81984781937fe2807dc6dcf3b2ad2939"
156+dependencies = [
157+ "futures-core",
158+ "futures-sink",
159+]
160+
161+[[package]]
162+name = "futures-core"
163+version = "0.3.13"
164+source = "registry+https://github.com/rust-lang/crates.io-index"
165+checksum = "15496a72fabf0e62bdc3df11a59a3787429221dd0710ba8ef163d6f7a9112c94"
166+
167+[[package]]
168+name = "futures-executor"
169+version = "0.3.13"
170+source = "registry+https://github.com/rust-lang/crates.io-index"
171+checksum = "891a4b7b96d84d5940084b2a37632dd65deeae662c114ceaa2c879629c9c0ad1"
172+dependencies = [
173+ "futures-core",
174+ "futures-task",
175+ "futures-util",
176+]
177+
178+[[package]]
179+name = "futures-io"
180+version = "0.3.13"
181+source = "registry+https://github.com/rust-lang/crates.io-index"
182+checksum = "d71c2c65c57704c32f5241c1223167c2c3294fd34ac020c807ddbe6db287ba59"
183+
184+[[package]]
185+name = "futures-macro"
186+version = "0.3.13"
187+source = "registry+https://github.com/rust-lang/crates.io-index"
188+checksum = "ea405816a5139fb39af82c2beb921d52143f556038378d6db21183a5c37fbfb7"
189+dependencies = [
190+ "proc-macro-hack",
191+ "proc-macro2",
192+ "quote",
193+ "syn",
194+]
195+
196+[[package]]
197+name = "futures-sink"
198+version = "0.3.13"
199+source = "registry+https://github.com/rust-lang/crates.io-index"
200+checksum = "85754d98985841b7d4f5e8e6fbfa4a4ac847916893ec511a2917ccd8525b8bb3"
201+
202+[[package]]
203+name = "futures-task"
204+version = "0.3.13"
205+source = "registry+https://github.com/rust-lang/crates.io-index"
206+checksum = "fa189ef211c15ee602667a6fcfe1c1fd9e07d42250d2156382820fba33c9df80"
207+
208+[[package]]
209+name = "futures-util"
210+version = "0.3.13"
211+source = "registry+https://github.com/rust-lang/crates.io-index"
212+checksum = "1812c7ab8aedf8d6f2701a43e1243acdbcc2b36ab26e2ad421eb99ac963d96d1"
213+dependencies = [
214+ "futures-channel",
215+ "futures-core",
216+ "futures-io",
217+ "futures-macro",
218+ "futures-sink",
219+ "futures-task",
220+ "memchr",
221+ "pin-project-lite 0.2.6",
222+ "pin-utils",
223+ "proc-macro-hack",
224+ "proc-macro-nested",
225+ "slab",
226+]
227+
228+[[package]]
229+name = "getopts"
230+version = "0.2.21"
231+source = "registry+https://github.com/rust-lang/crates.io-index"
232+checksum = "14dbbfd5c71d70241ecf9e6f13737f7b5ce823821063188d7e46c41d371eebd5"
233+dependencies = [
234+ "unicode-width",
235+]
236+
237+[[package]]
238+name = "hermit-abi"
239+version = "0.1.18"
240+source = "registry+https://github.com/rust-lang/crates.io-index"
241+checksum = "322f4de77956e22ed0e5032c359a0f1273f1f7f0d79bfa3b8ffbc730d7fbcc5c"
242+dependencies = [
243+ "libc",
244+]
245+
246+[[package]]
247+name = "hex"
248+version = "0.4.3"
249+source = "registry+https://github.com/rust-lang/crates.io-index"
250+checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70"
251+
252+[[package]]
253+name = "indenter"
254+version = "0.3.3"
255+source = "registry+https://github.com/rust-lang/crates.io-index"
256+checksum = "ce23b50ad8242c51a442f3ff322d56b02f08852c77e4c0b4d3fd684abc89c683"
257+
258+[[package]]
259+name = "iovec"
260+version = "0.1.4"
261+source = "registry+https://github.com/rust-lang/crates.io-index"
262+checksum = "b2b3ea6ff95e175473f8ffe6a7eb7c00d054240321b84c57051175fe3c1e075e"
263+dependencies = [
264+ "libc",
265+]
266+
267+[[package]]
268+name = "kernel32-sys"
269+version = "0.2.2"
270+source = "registry+https://github.com/rust-lang/crates.io-index"
271+checksum = "7507624b29483431c0ba2d82aece8ca6cdba9382bff4ddd0f7490560c056098d"
272+dependencies = [
273+ "winapi 0.2.8",
274+ "winapi-build",
275+]
276+
277+[[package]]
278+name = "lazy_static"
279+version = "1.4.0"
280+source = "registry+https://github.com/rust-lang/crates.io-index"
281+checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646"
282+
283+[[package]]
284+name = "libc"
285+version = "0.2.91"
286+source = "registry+https://github.com/rust-lang/crates.io-index"
287+checksum = "8916b1f6ca17130ec6568feccee27c156ad12037880833a3b842a823236502e7"
288+
289+[[package]]
290+name = "libloading"
291+version = "0.6.7"
292+source = "registry+https://github.com/rust-lang/crates.io-index"
293+checksum = "351a32417a12d5f7e82c368a66781e307834dae04c6ce0cd4456d52989229883"
294+dependencies = [
295+ "cfg-if 1.0.0",
296+ "winapi 0.3.9",
297+]
298+
299+[[package]]
300+name = "log"
301+version = "0.4.14"
302+source = "registry+https://github.com/rust-lang/crates.io-index"
303+checksum = "51b9bbe6c47d51fc3e1a9b945965946b4c44142ab8792c50835a980d362c2710"
304+dependencies = [
305+ "cfg-if 1.0.0",
306+]
307+
308+[[package]]
309+name = "memchr"
310+version = "2.3.4"
311+source = "registry+https://github.com/rust-lang/crates.io-index"
312+checksum = "0ee1c47aaa256ecabcaea351eae4a9b01ef39ed810004e298d2511ed284b1525"
313+
314+[[package]]
315+name = "mio"
316+version = "0.6.23"
317+source = "registry+https://github.com/rust-lang/crates.io-index"
318+checksum = "4afd66f5b91bf2a3bc13fad0e21caedac168ca4c707504e75585648ae80e4cc4"
319+dependencies = [
320+ "cfg-if 0.1.10",
321+ "fuchsia-zircon",
322+ "fuchsia-zircon-sys",
323+ "iovec",
324+ "kernel32-sys",
325+ "libc",
326+ "log",
327+ "miow 0.2.2",
328+ "net2",
329+ "slab",
330+ "winapi 0.2.8",
331+]
332+
333+[[package]]
334+name = "mio-named-pipes"
335+version = "0.1.7"
336+source = "registry+https://github.com/rust-lang/crates.io-index"
337+checksum = "0840c1c50fd55e521b247f949c241c9997709f23bd7f023b9762cd561e935656"
338+dependencies = [
339+ "log",
340+ "mio",
341+ "miow 0.3.7",
342+ "winapi 0.3.9",
343+]
344+
345+[[package]]
346+name = "mio-uds"
347+version = "0.6.8"
348+source = "registry+https://github.com/rust-lang/crates.io-index"
349+checksum = "afcb699eb26d4332647cc848492bbc15eafb26f08d0304550d5aa1f612e066f0"
350+dependencies = [
351+ "iovec",
352+ "libc",
353+ "mio",
354+]
355+
356+[[package]]
357+name = "miow"
358+version = "0.2.2"
359+source = "registry+https://github.com/rust-lang/crates.io-index"
360+checksum = "ebd808424166322d4a38da87083bfddd3ac4c131334ed55856112eb06d46944d"
361+dependencies = [
362+ "kernel32-sys",
363+ "net2",
364+ "winapi 0.2.8",
365+ "ws2_32-sys",
366+]
367+
368+[[package]]
369+name = "miow"
370+version = "0.3.7"
371+source = "registry+https://github.com/rust-lang/crates.io-index"
372+checksum = "b9f1c5b025cda876f66ef43a113f91ebc9f4ccef34843000e0adf6ebbab84e21"
373+dependencies = [
374+ "winapi 0.3.9",
375+]
376+
377+[[package]]
378+name = "net2"
379+version = "0.2.37"
380+source = "registry+https://github.com/rust-lang/crates.io-index"
381+checksum = "391630d12b68002ae1e25e8f974306474966550ad82dac6886fb8910c19568ae"
382+dependencies = [
383+ "cfg-if 0.1.10",
384+ "libc",
385+ "winapi 0.3.9",
386+]
387+
388+[[package]]
389+name = "num-integer"
390+version = "0.1.44"
391+source = "registry+https://github.com/rust-lang/crates.io-index"
392+checksum = "d2cc698a63b549a70bc047073d2949cce27cd1c7b0a4a862d08a8031bc2801db"
393+dependencies = [
394+ "autocfg",
395+ "num-traits",
396+]
397+
398+[[package]]
399+name = "num-traits"
400+version = "0.2.14"
401+source = "registry+https://github.com/rust-lang/crates.io-index"
402+checksum = "9a64b1ec5cda2586e284722486d802acf1f7dbdc623e2bfc57e65ca1cd099290"
403+dependencies = [
404+ "autocfg",
405+]
406+
407+[[package]]
408+name = "num_cpus"
409+version = "1.13.0"
410+source = "registry+https://github.com/rust-lang/crates.io-index"
411+checksum = "05499f3756671c15885fee9034446956fff3f243d6077b91e5767df161f766b3"
412+dependencies = [
413+ "hermit-abi",
414+ "libc",
415+]
416+
417+[[package]]
418+name = "once_cell"
419+version = "1.7.2"
420+source = "registry+https://github.com/rust-lang/crates.io-index"
421+checksum = "af8b08b04175473088b46763e51ee54da5f9a164bc162f615b91bc179dbf15a3"
422+
423+[[package]]
424+name = "pcap"
425+version = "0.8.1"
426+source = "git+https://github.com/jvns/pcap#ae2aa7f501ae5bb7069155cf7c5c700b7482681d"
427+dependencies = [
428+ "futures",
429+ "libc",
430+ "libloading",
431+ "mio",
432+ "regex",
433+ "tokio",
434+ "widestring",
435+]
436+
437+[[package]]
438+name = "pin-project-lite"
439+version = "0.1.12"
440+source = "registry+https://github.com/rust-lang/crates.io-index"
441+checksum = "257b64915a082f7811703966789728173279bdebb956b143dbcd23f6f970a777"
442+
443+[[package]]
444+name = "pin-project-lite"
445+version = "0.2.6"
446+source = "registry+https://github.com/rust-lang/crates.io-index"
447+checksum = "dc0e1f259c92177c30a4c9d177246edd0a3568b25756a977d0632cf8fa37e905"
448+
449+[[package]]
450+name = "pin-utils"
451+version = "0.1.0"
452+source = "registry+https://github.com/rust-lang/crates.io-index"
453+checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184"
454+
455+[[package]]
456+name = "proc-macro-hack"
457+version = "0.5.19"
458+source = "registry+https://github.com/rust-lang/crates.io-index"
459+checksum = "dbf0c48bc1d91375ae5c3cd81e3722dff1abcf81a30960240640d223f59fe0e5"
460+
461+[[package]]
462+name = "proc-macro-nested"
463+version = "0.1.7"
464+source = "registry+https://github.com/rust-lang/crates.io-index"
465+checksum = "bc881b2c22681370c6a780e47af9840ef841837bc98118431d4e1868bd0c1086"
466+
467+[[package]]
468+name = "proc-macro2"
469+version = "1.0.24"
470+source = "registry+https://github.com/rust-lang/crates.io-index"
471+checksum = "1e0704ee1a7e00d7bb417d0770ea303c1bccbabf0ef1667dae92b5967f5f8a71"
472+dependencies = [
473+ "unicode-xid",
474+]
475+
476+[[package]]
477+name = "quote"
478+version = "1.0.9"
479+source = "registry+https://github.com/rust-lang/crates.io-index"
480+checksum = "c3d0b9745dc2debf507c8422de05d7226cc1f0644216dfdfead988f9b1ab32a7"
481+dependencies = [
482+ "proc-macro2",
483+]
484+
485+[[package]]
486+name = "regex"
487+version = "1.4.5"
488+source = "registry+https://github.com/rust-lang/crates.io-index"
489+checksum = "957056ecddbeba1b26965114e191d2e8589ce74db242b6ea25fc4062427a5c19"
490+dependencies = [
491+ "aho-corasick",
492+ "memchr",
493+ "regex-syntax",
494+]
495+
496+[[package]]
497+name = "regex-syntax"
498+version = "0.6.23"
499+source = "registry+https://github.com/rust-lang/crates.io-index"
500+checksum = "24d5f089152e60f62d28b835fbff2cd2e8dc0baf1ac13343bef92ab7eed84548"
501+
502+[[package]]
503+name = "signal-hook-registry"
504+version = "1.3.0"
505+source = "registry+https://github.com/rust-lang/crates.io-index"
506+checksum = "16f1d0fef1604ba8f7a073c7e701f213e056707210e9020af4528e0101ce11a6"
507+dependencies = [
508+ "libc",
509+]
510+
511+[[package]]
512+name = "slab"
513+version = "0.4.2"
514+source = "registry+https://github.com/rust-lang/crates.io-index"
515+checksum = "c111b5bd5695e56cffe5129854aa230b39c93a305372fdbb2668ca2394eea9f8"
516+
517+[[package]]
518+name = "syn"
519+version = "1.0.65"
520+source = "registry+https://github.com/rust-lang/crates.io-index"
521+checksum = "f3a1d708c221c5a612956ef9f75b37e454e88d1f7b899fbd3a18d4252012d663"
522+dependencies = [
523+ "proc-macro2",
524+ "quote",
525+ "unicode-xid",
526+]
527+
528+[[package]]
529+name = "thiserror"
530+version = "1.0.24"
531+source = "registry+https://github.com/rust-lang/crates.io-index"
532+checksum = "e0f4a65597094d4483ddaed134f409b2cb7c1beccf25201a9f73c719254fa98e"
533+dependencies = [
534+ "thiserror-impl",
535+]
536+
537+[[package]]
538+name = "thiserror-impl"
539+version = "1.0.24"
540+source = "registry+https://github.com/rust-lang/crates.io-index"
541+checksum = "7765189610d8241a44529806d6fd1f2e0a08734313a35d5b3a556f92b381f3c0"
542+dependencies = [
543+ "proc-macro2",
544+ "quote",
545+ "syn",
546+]
547+
548+[[package]]
549+name = "time"
550+version = "0.1.44"
551+source = "registry+https://github.com/rust-lang/crates.io-index"
552+checksum = "6db9e6914ab8b1ae1c260a4ae7a49b6c5611b40328a735b21862567685e73255"
553+dependencies = [
554+ "libc",
555+ "wasi",
556+ "winapi 0.3.9",
557+]
558+
559+[[package]]
560+name = "tokio"
561+version = "0.2.25"
562+source = "registry+https://github.com/rust-lang/crates.io-index"
563+checksum = "6703a273949a90131b290be1fe7b039d0fc884aa1935860dfcbe056f28cd8092"
564+dependencies = [
565+ "bytes 0.5.6",
566+ "fnv",
567+ "futures-core",
568+ "iovec",
569+ "lazy_static",
570+ "libc",
571+ "memchr",
572+ "mio",
573+ "mio-named-pipes",
574+ "mio-uds",
575+ "num_cpus",
576+ "pin-project-lite 0.1.12",
577+ "signal-hook-registry",
578+ "slab",
579+ "tokio-macros",
580+ "winapi 0.3.9",
581+]
582+
583+[[package]]
584+name = "tokio-macros"
585+version = "0.2.6"
586+source = "registry+https://github.com/rust-lang/crates.io-index"
587+checksum = "e44da00bfc73a25f814cd8d7e57a68a5c31b74b3152a0a1d1f590c97ed06265a"
588+dependencies = [
589+ "proc-macro2",
590+ "quote",
591+ "syn",
592+]
593+
594+[[package]]
595+name = "unicode-width"
596+version = "0.1.8"
597+source = "registry+https://github.com/rust-lang/crates.io-index"
598+checksum = "9337591893a19b88d8d87f2cec1e73fad5cdfd10e5a6f349f498ad6ea2ffb1e3"
599+
600+[[package]]
601+name = "unicode-xid"
602+version = "0.2.1"
603+source = "registry+https://github.com/rust-lang/crates.io-index"
604+checksum = "f7fe0bb3479651439c9112f72b6c505038574c9fbb575ed1bf3b797fa39dd564"
605+
606+[[package]]
607+name = "wasi"
608+version = "0.10.0+wasi-snapshot-preview1"
609+source = "registry+https://github.com/rust-lang/crates.io-index"
610+checksum = "1a143597ca7c7793eff794def352d41792a93c481eb1042423ff7ff72ba2c31f"
611+
612+[[package]]
613+name = "widestring"
614+version = "0.2.2"
615+source = "registry+https://github.com/rust-lang/crates.io-index"
616+checksum = "7157704c2e12e3d2189c507b7482c52820a16dfa4465ba91add92f266667cadb"
617+
618+[[package]]
619+name = "winapi"
620+version = "0.2.8"
621+source = "registry+https://github.com/rust-lang/crates.io-index"
622+checksum = "167dc9d6949a9b857f3451275e911c3f44255842c1f7a76f33c55103a909087a"
623+
624+[[package]]
625+name = "winapi"
626+version = "0.3.9"
627+source = "registry+https://github.com/rust-lang/crates.io-index"
628+checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419"
629+dependencies = [
630+ "winapi-i686-pc-windows-gnu",
631+ "winapi-x86_64-pc-windows-gnu",
632+]
633+
634+[[package]]
635+name = "winapi-build"
636+version = "0.1.1"
637+source = "registry+https://github.com/rust-lang/crates.io-index"
638+checksum = "2d315eee3b34aca4797b2da6b13ed88266e6d612562a0c46390af8299fc699bc"
639+
640+[[package]]
641+name = "winapi-i686-pc-windows-gnu"
642+version = "0.4.0"
643+source = "registry+https://github.com/rust-lang/crates.io-index"
644+checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6"
645+
646+[[package]]
647+name = "winapi-x86_64-pc-windows-gnu"
648+version = "0.4.0"
649+source = "registry+https://github.com/rust-lang/crates.io-index"
650+checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"
651+
652+[[package]]
653+name = "ws2_32-sys"
654+version = "0.2.1"
655+source = "registry+https://github.com/rust-lang/crates.io-index"
656+checksum = "d59cefebd0c892fa2dd6de581e937301d8552cb44489cdff035c6187cb63fa5e"
657+dependencies = [
658+ "winapi 0.2.8",
659+ "winapi-build",
660+]
pkgs/tools/security/dnspeep/default.nixnew file+32
@@ -0,0 +1,32 @@
1+{ fetchFromGitHub, lib, libpcap, rustPlatform }:
2+
3+rustPlatform.buildRustPackage rec {
4+ pname = "dnspeep";
5+ version = "0.1.2";
6+
7+ src = fetchFromGitHub {
8+ owner = "jvns";
9+ repo = pname;
10+ rev = "v${version}";
11+ sha256 = "0lz22vlgi1alsq676q4nlzfzwnsrvziyqdnmdbn00rwqsvlb81q6";
12+ };
13+
14+ # dnspeep has git dependencies therefore doesn't work with `cargoSha256`
15+ cargoLock = {
16+ # update Cargo.lock every update
17+ lockFile = ./Cargo.lock;
18+ outputHashes = {
19+ "pcap-0.8.1" = "1nnfyhlhcpbl4i6zmfa9rvnvr6ibg5khran1f5yhmr9yfhmhgakd";
20+ };
21+ };
22+
23+ LIBPCAP_LIBDIR = lib.makeLibraryPath [ libpcap ];
24+ LIBPCAP_VER = libpcap.version;
25+
26+ meta = with lib; {
27+ description = "Spy on the DNS queries your computer is making";
28+ homepage = "https://github.com/jvns/dnspeep";
29+ license = licenses.mit;
30+ maintainers = with maintainers; [ figsoda ];
31+ };
32+}
pkgs/top-level/all-packages.nix+2
@@ -4214,6 +4214,8 @@ with pkgs;
42144214
42154215 dnsmasq = callPackage ../tools/networking/dnsmasq { };
42164216
4217+ dnspeep = callPackage ../tools/security/dnspeep { };
4218+
42174219 dnsproxy = callPackage ../tools/networking/dnsproxy { };
42184220
42194221 dnsperf = callPackage ../tools/networking/dnsperf { };