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