1{ lib, stdenv, fetchFromGitHub, autoconf, automake, libtool }:
2
3stdenv.mkDerivation rec {
4 pname = "libnet";
5 version = "1.3";
6
7 src = fetchFromGitHub {
8 owner = "sam-github";
9 repo = "libnet";
10 rev = "v${version}";
11 hash = "sha256-P3LaDMMNPyEnA8nO1Bm7H0mW/hVBr0cFdg+p2JmWcGI=";
12 };
13
14 nativeBuildInputs = [
15 autoconf
16 automake
17 libtool
18 ];
19
20 preConfigure = "./autogen.sh";
21
22 meta = with lib; {
23 homepage = "https://github.com/sam-github/libnet";
24 description = "Portable framework for low-level network packet construction";
25 mainProgram = "libnet-config";
26 license = licenses.bsd3;
27 platforms = platforms.unix;
28 };
29}