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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

25 lines
581 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitLab, libpcap }:
2016-01-04 20:13:05 +00:00
stdenv.mkDerivation rec {
pname = "pcapc";
version = "1.0.1";
2016-01-04 20:13:05 +00:00
src = fetchFromGitLab {
owner = "post-factum";
repo = pname;
2017-03-02 00:01:42 +00:00
rev = "v${version}";
hash = "sha256-oDg9OSvi9aQsZ2SQm02NKAcppE0w5SGZaI13gdp7gv4=";
2016-01-04 20:13:05 +00:00
};
buildInputs = [ libpcap ];
makeFlags = [ "PREFIX=${placeholder "out"}" ];
2016-01-04 20:13:05 +00:00
meta = with lib; {
homepage = "https://gitlab.com/post-factum/pcapc";
2016-01-04 20:13:05 +00:00
description = "Compile libpcap filter expressions into BPF opcodes";
license = licenses.gpl3Only;
2016-01-04 20:13:05 +00:00
platforms = platforms.linux;
};
}