depot/third_party/nixpkgs/pkgs/development/libraries/libcrafter/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

29 lines
809 B
Nix

{ stdenv, fetchzip, autoconf, automake, libtool, libpcap }:
stdenv.mkDerivation rec {
pname = "libcrafter";
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";
license = stdenv.lib.licenses.bsd3;
maintainers = [ stdenv.lib.maintainers.lethalman ];
platforms = stdenv.lib.platforms.unix;
};
}