btrbk: add mainProgram (#356350)
[NixPkgs.git] / pkgs / by-name / li / libnet / package.nix
blobc8f38387111f8faab716b2935ccb95200850133f
1 { lib, stdenv, fetchFromGitHub, autoconf, automake, libtool }:
3 stdenv.mkDerivation rec {
4   pname = "libnet";
5   version = "1.3";
7   src = fetchFromGitHub {
8     owner = "sam-github";
9     repo = "libnet";
10     rev = "v${version}";
11     hash = "sha256-P3LaDMMNPyEnA8nO1Bm7H0mW/hVBr0cFdg+p2JmWcGI=";
12   };
14   nativeBuildInputs = [
15     autoconf
16     automake
17     libtool
18   ];
20   preConfigure = "./autogen.sh";
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   };