1 { lib, stdenv, fetchFromGitHub, autoreconfHook, zlib, bzip2 }:
3 stdenv.mkDerivation rec {
7 src = fetchFromGitHub {
11 sha256 = "sha256-1HXMf9mHManR7jhonU2Agon0YFXOlM9APIN1Zm840AM=";
15 substituteInPlace Makefile.in --replace 'ar r libbgpdump.a' '$(AR) r libbgpdump.a'
18 nativeBuildInputs = [ autoreconfHook ];
19 buildInputs = [ zlib bzip2 ];
22 homepage = "https://github.com/RIPE-NCC/bgpdump";
23 description = "Analyze dump files produced by Zebra/Quagga or MRT";
24 license = lib.licenses.hpnd;
25 maintainers = with lib.maintainers; [ lewo ];
26 platforms = with lib.platforms; linux;
27 mainProgram = "bgpdump";