mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-05 20:12:52 +00:00
46420bbaa3
treewide replacement of stdenv.mkDerivation rec { name = "*-${version}"; version = "*"; to pname
30 lines
807 B
Nix
30 lines
807 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;
|
|
};
|
|
}
|