pcapc: 2015-03.06 -> 1.0.0

This commit is contained in:
ndowens 2017-03-01 18:01:42 -06:00
parent 61785c5531
commit 4313c44de3

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;