nixpkgs/pkgs/tools/networking/pcapc/default.nix
volth 46420bbaa3 treewide: name -> pname (easy cases) (#66585)
treewide replacement of

stdenv.mkDerivation rec {
  name = "*-${version}";
  version = "*";

to pname
2019-08-15 13:41:18 +01:00

30 lines
654 B
Nix

{ stdenv, fetchFromGitHub, libpcap, cmake }:
stdenv.mkDerivation rec {
pname = "pcapc";
version = "1.0.0";
src = fetchFromGitHub {
sha256 = "137crs0bb7kh9a8p9g168yj2jrp0h3j3073nwh31jy4nk0g5hlfp";
rev = "v${version}";
repo = "pcapc";
owner = "pfactum";
};
nativeBuildInputs = [ cmake ];
buildInputs = [ libpcap ];
makeFlags = [ "PREFIX=$(out)" ];
enableParallelBuilding = true;
doCheck = false;
meta = with stdenv.lib; {
homepage = https://github.com/pfactum/pcapc;
description = "Compile libpcap filter expressions into BPF opcodes";
license = licenses.gpl3;
platforms = platforms.linux;
};
}