nixpkgs/pkgs/development/libraries/libcrafter/default.nix

30 lines
767 B
Nix
Raw Normal View History

{ lib, stdenv, fetchzip, autoconf, automake, libtool, libpcap }:
2015-05-08 11:19:31 +00:00
stdenv.mkDerivation rec {
pname = "libcrafter";
2020-07-16 06:47:54 +00:00
version = "1.0";
2015-05-08 11:48:26 +00:00
2015-05-08 11:19:31 +00:00
src = fetchzip {
url = "https://github.com/pellegre/libcrafter/archive/version-${version}.zip";
2020-07-16 06:47:54 +00:00
sha256 = "1d2vgxawdwk2zg3scxclxdby1rhghmivly8azdjja89kw7gls9xl";
2015-05-08 11:19:31 +00:00
};
2015-05-08 11:48:26 +00:00
2015-05-08 11:19:31 +00:00
preConfigure = "cd libcrafter";
configureScript = "./autogen.sh";
configureFlags = [ "--with-libpcap=yes" ];
buildInputs = [ autoconf automake libtool ];
propagatedBuildInputs = [ libpcap ];
meta = {
homepage = "https://github.com/pellegre/libcrafter";
2015-05-08 11:19:31 +00:00
description = "High level C++ network packet sniffing and crafting library";
license = lib.licenses.bsd3;
maintainers = [ ];
platforms = lib.platforms.unix;
2015-05-08 11:19:31 +00:00
};
}