aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/development/libraries/libcrafter/default.nix
blob: 20bcc9183ec4d92ceb5a82e9c93a31d0a24ac2b3 (plain)
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
27
28
29
{ stdenv, fetchzip, autoconf, automake, libtool, libpcap }:

stdenv.mkDerivation rec {
  pname = "libcrafter";
  version = "1.0";

  src = fetchzip {
    url = "https://github.com/pellegre/libcrafter/archive/version-${version}.zip";
    sha256 = "1d2vgxawdwk2zg3scxclxdby1rhghmivly8azdjja89kw7gls9xl";
  };

  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";
    license = stdenv.lib.licenses.bsd3;
    maintainers = [ stdenv.lib.maintainers.lethalman ];
    platforms = stdenv.lib.platforms.unix;
  };
}