mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-25 20:34:52 +03:00
Merge pull request #23360 from ndowens/pcapc
pcapc: 2015-03.06 -> 1.0.0
This commit is contained in:
commit
ef69326e99
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user