bgpdump: fix cross compilation

This commit is contained in:
Nick Cao 2022-12-12 14:35:01 +08:00
parent c7c950be89
commit 489f2cf089
No known key found for this signature in database

View file

@ -11,6 +11,10 @@ stdenv.mkDerivation rec {
sha256 = "sha256-1HXMf9mHManR7jhonU2Agon0YFXOlM9APIN1Zm840AM=";
};
postPatch = ''
substituteInPlace Makefile.in --replace 'ar r libbgpdump.a' '$(AR) r libbgpdump.a'
'';
nativeBuildInputs = [ autoreconfHook ];
buildInputs = [ zlib bzip2 ];