1 { lib, stdenv, fetchFromGitLab, libpcap }:
3 stdenv.mkDerivation rec {
7 src = fetchFromGitLab {
11 hash = "sha256-oDg9OSvi9aQsZ2SQm02NKAcppE0w5SGZaI13gdp7gv4=";
14 buildInputs = [ libpcap ];
16 makeFlags = [ "PREFIX=${placeholder "out"}" ];
19 homepage = "https://gitlab.com/post-factum/pcapc";
20 description = "Compile libpcap filter expressions into BPF opcodes";
21 license = licenses.gpl3Only;
22 platforms = platforms.linux;
23 mainProgram = "pcapc";