2021-08-22 13:53:19 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, autoreconfHook, zlib, bzip2 }:
|
2017-10-17 08:37:20 +00:00
|
|
|
|
2019-11-11 21:17:43 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "bgpdump";
|
2021-08-22 13:53:19 +00:00
|
|
|
version = "1.6.2";
|
2017-10-17 08:37:20 +00:00
|
|
|
|
2021-08-22 13:53:19 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "RIPE-NCC";
|
|
|
|
repo = "bgpdump";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "sha256-1HXMf9mHManR7jhonU2Agon0YFXOlM9APIN1Zm840AM=";
|
2017-10-17 08:37:20 +00:00
|
|
|
};
|
|
|
|
|
2022-12-12 06:35:01 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace Makefile.in --replace 'ar r libbgpdump.a' '$(AR) r libbgpdump.a'
|
|
|
|
'';
|
|
|
|
|
2017-10-17 08:37:20 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
|
|
|
buildInputs = [ zlib bzip2 ];
|
|
|
|
|
|
|
|
meta = {
|
2021-08-22 13:53:19 +00:00
|
|
|
homepage = "https://github.com/RIPE-NCC/bgpdump";
|
2021-01-24 09:19:10 +00:00
|
|
|
description = "Analyze dump files produced by Zebra/Quagga or MRT";
|
2021-01-15 09:19:50 +00:00
|
|
|
license = lib.licenses.hpnd;
|
|
|
|
maintainers = with lib.maintainers; [ lewo ];
|
|
|
|
platforms = with lib.platforms; linux;
|
2017-10-17 08:37:20 +00:00
|
|
|
};
|
|
|
|
}
|