nixpkgs/pkgs/tools/networking/bgpdump/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

29 lines
760 B
Nix
Raw Normal View History

2021-08-22 13:53:19 +00:00
{ lib, stdenv, fetchFromGitHub, autoreconfHook, zlib, bzip2 }:
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";
2021-08-22 13:53:19 +00:00
src = fetchFromGitHub {
owner = "RIPE-NCC";
repo = "bgpdump";
rev = "v${version}";
sha256 = "sha256-1HXMf9mHManR7jhonU2Agon0YFXOlM9APIN1Zm840AM=";
};
2022-12-12 06:35:01 +00:00
postPatch = ''
substituteInPlace Makefile.in --replace 'ar r libbgpdump.a' '$(AR) r libbgpdump.a'
'';
nativeBuildInputs = [ autoreconfHook ];
buildInputs = [ zlib bzip2 ];
meta = {
2021-08-22 13:53:19 +00:00
homepage = "https://github.com/RIPE-NCC/bgpdump";
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;
};
}