Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenv, fetchFromGitHub, autoconf, automake, libtool }: 2 3stdenv.mkDerivation rec { 4 pname = "libnet"; 5 version = "1.2"; 6 7 src = fetchFromGitHub { 8 owner = "sam-github"; 9 repo = "libnet"; 10 rev = "v${version}"; 11 sha256 = "sha256-Y/wd9c4whUbfpvWvKzJV6vJN3AlA14XBejchRG6wBc4="; 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 license = licenses.bsd3; 26 platforms = platforms.unix; 27 }; 28}