generated using https://git.kybe.xyz/2kybe3/nixpkgs-github-redirect continuation of: #538598
54 lines
888 B
Nix
54 lines
888 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
autoconf,
|
|
automake,
|
|
libtool,
|
|
bash,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "libnet";
|
|
version = "1.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "libnet";
|
|
repo = "libnet";
|
|
rev = "v${finalAttrs.version}";
|
|
hash = "sha256-P3LaDMMNPyEnA8nO1Bm7H0mW/hVBr0cFdg+p2JmWcGI=";
|
|
};
|
|
|
|
strictDeps = true;
|
|
enableParallelBuilding = true;
|
|
|
|
outputs = [
|
|
"out"
|
|
"dev"
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
autoconf
|
|
automake
|
|
libtool
|
|
];
|
|
|
|
buildInputs = [
|
|
bash
|
|
];
|
|
|
|
preConfigure = "./autogen.sh";
|
|
|
|
preFixup = ''
|
|
moveToOutput bin/libnet-config "$dev"
|
|
'';
|
|
|
|
meta = {
|
|
homepage = "https://github.com/libnet/libnet";
|
|
description = "Portable framework for low-level network packet construction";
|
|
mainProgram = "libnet-config";
|
|
license = lib.licenses.bsd3;
|
|
platforms = lib.platforms.unix;
|
|
};
|
|
})
|