Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 31 lines 713 B view raw
1{ 2 lib, 3 rustPlatform, 4 fetchFromGitHub, 5 libpcap, 6}: 7 8rustPlatform.buildRustPackage rec { 9 pname = "dnspeep"; 10 version = "0.1.3"; 11 12 src = fetchFromGitHub { 13 owner = "jvns"; 14 repo = "dnspeep"; 15 rev = "v${version}"; 16 sha256 = "sha256-QpUbHiMDQFRCTVyjrO9lfQQ62Z3qanv0j+8eEXjE3n4="; 17 }; 18 19 cargoHash = "sha256-tZlh7+END6oOy3uWOrjle+nwqFhMU6bbXmr4hdt6gqY="; 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 mainProgram = "dnspeep"; 27 homepage = "https://github.com/jvns/dnspeep"; 28 license = licenses.mit; 29 maintainers = with maintainers; [ figsoda ]; 30 }; 31}