blob: fdbf93b164795c8ba8ce2f4c074844e83d6798b7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
{
lib,
rustPlatform,
fetchFromGitHub,
libpcap,
nix-update-script,
}:
rustPlatform.buildRustPackage (finalAttrs: {
pname = "dnspeep";
version = "0.1.3";
src = fetchFromGitHub {
owner = "jvns";
repo = "dnspeep";
rev = "v${finalAttrs.version}";
sha256 = "sha256-QpUbHiMDQFRCTVyjrO9lfQQ62Z3qanv0j+8eEXjE3n4=";
};
cargoHash = "sha256-tZlh7+END6oOy3uWOrjle+nwqFhMU6bbXmr4hdt6gqY=";
env = {
LIBPCAP_LIBDIR = lib.makeLibraryPath [ libpcap ];
LIBPCAP_VER = libpcap.version;
};
passthru.updateScript = nix-update-script { };
meta = {
description = "Spy on the DNS queries your computer is making";
mainProgram = "dnspeep";
homepage = "https://github.com/jvns/dnspeep";
changelog = "https://github.com/jvns/dnspeep/releases/tag/v${finalAttrs.version}";
license = lib.licenses.mit;
maintainers = [ lib.maintainers.progrm_jarvis ];
};
})
|