3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/networking/pcapc/default.nix

30 lines
664 B
Nix
Raw Normal View History

2017-03-02 00:01:42 +00:00
{ stdenv, fetchFromGitHub, libpcap, cmake }:
2016-01-04 20:13:05 +00:00
stdenv.mkDerivation rec {
name = "pcapc-${version}";
2017-03-02 00:01:42 +00:00
version = "1.0.0";
2016-01-04 20:13:05 +00:00
src = fetchFromGitHub {
2017-03-02 00:01:42 +00:00
sha256 = "137crs0bb7kh9a8p9g168yj2jrp0h3j3073nwh31jy4nk0g5hlfp";
rev = "v${version}";
2016-01-04 20:13:05 +00:00
repo = "pcapc";
owner = "pfactum";
};
2017-03-02 00:01:42 +00:00
nativeBuildInputs = [ cmake ];
2016-01-04 20:13:05 +00:00
buildInputs = [ libpcap ];
makeFlags = [ "PREFIX=$(out)" ];
enableParallelBuilding = true;
doCheck = false;
meta = with stdenv.lib; {
homepage = https://github.com/pfactum/pcapc;
2016-01-04 20:13:05 +00:00
description = "Compile libpcap filter expressions into BPF opcodes";
license = licenses.gpl3;
platforms = platforms.linux;
};
}