2018-07-21 02:44:44 +02:00
|
|
|
{ stdenv, fetchurl, qt4, pkgconfig, libnl, python }:
|
2011-06-07 23:50:48 +02:00
|
|
|
|
|
|
|
let
|
2012-01-14 19:03:34 +01:00
|
|
|
version = "016";
|
2011-06-07 23:50:48 +02:00
|
|
|
in
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "ntrack-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2018-11-24 23:47:52 +01:00
|
|
|
url = "https://launchpad.net/ntrack/main/${version}/+download/${name}.tar.gz";
|
2012-01-14 19:03:34 +01:00
|
|
|
sha256 = "037ig5y0mp327m0hh4pnfr3vmsk3wrxgfjy3645q4ws9vdhx807w";
|
2011-06-07 23:50:48 +02:00
|
|
|
};
|
|
|
|
|
2011-08-10 22:19:49 +02:00
|
|
|
buildInputs = [ libnl qt4 ];
|
2011-06-07 23:50:48 +02:00
|
|
|
|
2012-12-28 19:20:09 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig python ];
|
2011-06-07 23:50:48 +02:00
|
|
|
|
2019-03-26 00:50:07 +01:00
|
|
|
# error: ISO C does not support '__FUNCTION__' predefined identifier [-Werror=pedantic]
|
|
|
|
NIX_CFLAGS_COMPILE = [ "-Wno-error" ];
|
|
|
|
|
2018-07-25 23:44:21 +02:00
|
|
|
configureFlags = [ "--without-gobject" "CFLAGS=--std=gnu99" ];
|
2011-06-07 23:50:48 +02:00
|
|
|
|
2013-12-02 17:40:22 +01:00
|
|
|
# Remove this patch after version 016
|
|
|
|
patches = [ ./libnl-fix.patch ];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
sed -e "s@/usr\(/lib/ntrack/modules/\)@$out&@" -i common/ntrack.c
|
|
|
|
'';
|
2011-09-08 00:53:31 +02:00
|
|
|
|
2018-10-25 21:46:20 +02:00
|
|
|
meta = with stdenv.lib; {
|
2012-01-14 19:03:34 +01:00
|
|
|
description = "Network Connectivity Tracking library for Desktop Applications";
|
|
|
|
homepage = https://launchpad.net/ntrack;
|
2018-10-25 21:46:20 +02:00
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.lgpl3Plus;
|
2011-09-08 00:53:31 +02:00
|
|
|
};
|
2011-06-07 23:50:48 +02:00
|
|
|
}
|