1{
2 lib,
3 stdenv,
4 fetchurl,
5}:
6
7stdenv.mkDerivation {
8 pname = "libipfix";
9 version = "110209";
10 src = fetchurl {
11 url = "mirror://sourceforge/libipfix/files/libipfix/libipfix_110209.tgz";
12 sha256 = "0h7v0sxjjdc41hl5vq2x0yhyn04bczl11bqm97825mivrvfymhn6";
13 };
14
15 # Workaround build failure on -fno-common toolchains:
16 # ld: ../libmisc/libmisc.a(mlog.o):/build/libipfix_110209/libmisc/misc.h:111: multiple definition of
17 # `ht_globals'; collector.o:/build/libipfix_110209/collector/../libmisc/misc.h:111: first defined here
18 # TODO: drop the workaround when fix ix released:
19 # https://sourceforge.net/p/libipfix/code/ci/a501612c6b8ac6f2df16b366f7a92211382bae6b/
20 env.NIX_CFLAGS_COMPILE = "-fcommon";
21
22 meta = with lib; {
23 homepage = "https://libipfix.sourceforge.net/";
24 description = "Libipfix C-library implements the IPFIX protocol defined by the IP Flow Information Export working group of the IETF";
25 mainProgram = "ipfix_collector";
26 license = licenses.lgpl3;
27 platforms = platforms.linux;
28 maintainers = with maintainers; [ lewo ];
29 };
30}