Merge pull request #23360 from ndowens/pcapc

pcapc: 2015-03.06 -> 1.0.0
This commit is contained in:
Tobias Geerinckx-Rice 2017-03-24 18:44:53 +00:00 committed by GitHub
commit ef69326e99

View File

@ -1,16 +1,17 @@
{ stdenv, fetchFromGitHub, libpcap }:
{ stdenv, fetchFromGitHub, libpcap, cmake }:
stdenv.mkDerivation rec {
name = "pcapc-${version}";
version = "2015-03-06";
version = "1.0.0";
src = fetchFromGitHub {
sha256 = "02j45wmxy8qcji0giwx3364pbqb6849s8y0xfvzx40g98mssl027";
rev = "9dddf52e65c8cff72c7c11758a951b31bf083436";
sha256 = "137crs0bb7kh9a8p9g168yj2jrp0h3j3073nwh31jy4nk0g5hlfp";
rev = "v${version}";
repo = "pcapc";
owner = "pfactum";
};
nativeBuildInputs = [ cmake ];
buildInputs = [ libpcap ];
makeFlags = [ "PREFIX=$(out)" ];
@ -19,12 +20,8 @@ stdenv.mkDerivation rec {
doCheck = false;
postInstall = ''
install -Dm644 {.,$out/share/doc/pcapc}/README.md
'';
meta = with stdenv.lib; {
inherit (src.meta) homepage;
homepage = "https://github.com/pfactum/pcapc";
description = "Compile libpcap filter expressions into BPF opcodes";
license = licenses.gpl3;
platforms = platforms.linux;