summary refs log tree commit diff
path: root/pkgs/development/libraries/libcrafter/default.nix
blob: e775e9ef63f7a6fa0012bead4e0c39e04699a424 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{ stdenv, fetchzip, autoconf, automake, libtool, libpcap }:

stdenv.mkDerivation rec {
  name = "libcrafter-${version}";
  version = "0.3";
  
  src = fetchzip {
    url = "https://github.com/pellegre/libcrafter/archive/version-${version}.zip";
    sha256 = "04lpmshh4wb1dav03p6rnskpd1zmmvhv80xwn8v7l8faps5gvjp4";
  };
  
  preConfigure = "cd libcrafter";

  configureScript = "./autogen.sh";

  configureFlags = [ "--with-libpcap=yes" ];

  buildInputs = [ autoconf automake libtool ];

  propagatedBuildInputs = [ libpcap ];

  meta = {
    homepage = https://github.com/pellegre/libcrafter;
    description = "High level C++ network packet sniffing and crafting library";
  };
}