2021-10-08 01:23:32 +02:00
|
|
|
{ lib, rustPlatform, fetchFromGitHub, libpcap }:
|
2021-08-08 17:12:42 +02:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "dnspeep";
|
2022-01-24 08:30:58 +01:00
|
|
|
version = "0.1.3";
|
2021-08-08 17:12:42 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jvns";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-01-24 08:30:58 +01:00
|
|
|
sha256 = "sha256-QpUbHiMDQFRCTVyjrO9lfQQ62Z3qanv0j+8eEXjE3n4=";
|
2021-08-08 17:12:42 +02:00
|
|
|
};
|
|
|
|
|
2023-03-26 00:16:46 +01:00
|
|
|
cargoLock = {
|
|
|
|
lockFile = ./Cargo.lock;
|
|
|
|
outputHashes = {
|
|
|
|
"pcap-0.8.1" = "sha256-baoHK3Q+5Qp9ccGqDGd5K5q87c5JufpNJHRdBin0zto=";
|
|
|
|
};
|
|
|
|
};
|
2021-08-08 17:12:42 +02:00
|
|
|
|
|
|
|
LIBPCAP_LIBDIR = lib.makeLibraryPath [ libpcap ];
|
|
|
|
LIBPCAP_VER = libpcap.version;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Spy on the DNS queries your computer is making";
|
|
|
|
homepage = "https://github.com/jvns/dnspeep";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ figsoda ];
|
|
|
|
};
|
|
|
|
}
|