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