lol
at 24.05-pre 30 lines 756 B view raw
1{ lib, rustPlatform, fetchFromGitHub, libpcap }: 2 3rustPlatform.buildRustPackage rec { 4 pname = "dnspeep"; 5 version = "0.1.3"; 6 7 src = fetchFromGitHub { 8 owner = "jvns"; 9 repo = pname; 10 rev = "v${version}"; 11 sha256 = "sha256-QpUbHiMDQFRCTVyjrO9lfQQ62Z3qanv0j+8eEXjE3n4="; 12 }; 13 14 cargoLock = { 15 lockFile = ./Cargo.lock; 16 outputHashes = { 17 "pcap-0.8.1" = "sha256-baoHK3Q+5Qp9ccGqDGd5K5q87c5JufpNJHRdBin0zto="; 18 }; 19 }; 20 21 LIBPCAP_LIBDIR = lib.makeLibraryPath [ libpcap ]; 22 LIBPCAP_VER = libpcap.version; 23 24 meta = with lib; { 25 description = "Spy on the DNS queries your computer is making"; 26 homepage = "https://github.com/jvns/dnspeep"; 27 license = licenses.mit; 28 maintainers = with maintainers; [ figsoda ]; 29 }; 30}