2022-03-30 09:18:00 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, autoconf, automake, libtool }:
|
2013-10-03 13:35:34 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "libnet";
|
2022-03-30 09:18:00 +00:00
|
|
|
version = "1.2";
|
2013-10-03 13:35:34 +00:00
|
|
|
|
2022-03-30 09:18:00 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "sam-github";
|
|
|
|
repo = "libnet";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "sha256-Y/wd9c4whUbfpvWvKzJV6vJN3AlA14XBejchRG6wBc4=";
|
2013-10-03 13:35:34 +00:00
|
|
|
};
|
|
|
|
|
2022-03-30 09:18:00 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
autoconf
|
|
|
|
automake
|
|
|
|
libtool
|
|
|
|
];
|
|
|
|
|
|
|
|
preConfigure = "./autogen.sh";
|
2017-10-30 21:25:05 +00:00
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/sam-github/libnet";
|
2013-10-06 09:49:53 +00:00
|
|
|
description = "Portable framework for low-level network packet construction";
|
2015-03-11 23:21:23 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
platforms = platforms.unix;
|
2013-10-03 13:35:34 +00:00
|
|
|
};
|
|
|
|
}
|