2021-08-23 08:02:39 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, autoreconfHook, zlib, bzip2 }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "bgpdump";
|
2021-08-23 08:02:39 +00:00
|
|
|
version = "1.6.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-08-23 08:02:39 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "RIPE-NCC";
|
|
|
|
repo = "bgpdump";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "sha256-1HXMf9mHManR7jhonU2Agon0YFXOlM9APIN1Zm840AM=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-12-17 10:02:37 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace Makefile.in --replace 'ar r libbgpdump.a' '$(AR) r libbgpdump.a'
|
|
|
|
'';
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
|
|
|
buildInputs = [ zlib bzip2 ];
|
|
|
|
|
|
|
|
meta = {
|
2021-08-23 08:02:39 +00:00
|
|
|
homepage = "https://github.com/RIPE-NCC/bgpdump";
|
2021-02-05 17:12:51 +00:00
|
|
|
description = "Analyze dump files produced by Zebra/Quagga or MRT";
|
2021-01-15 22:18:51 +00:00
|
|
|
license = lib.licenses.hpnd;
|
|
|
|
maintainers = with lib.maintainers; [ lewo ];
|
|
|
|
platforms = with lib.platforms; linux;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|