2022-01-30 06:39:05 +00:00
|
|
|
{ lib, stdenv, fetchurl, qt4, pkg-config, libnl, python3 }:
|
2011-06-07 21:50:48 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-13 21:52:01 +00:00
|
|
|
pname = "ntrack";
|
2021-07-17 18:37:27 +00:00
|
|
|
version = "016";
|
2011-06-07 21:50:48 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-13 21:52:01 +00:00
|
|
|
url = "https://launchpad.net/ntrack/main/${version}/+download/${pname}-${version}.tar.gz";
|
2012-01-14 18:03:34 +00:00
|
|
|
sha256 = "037ig5y0mp327m0hh4pnfr3vmsk3wrxgfjy3645q4ws9vdhx807w";
|
2011-06-07 21:50:48 +00:00
|
|
|
};
|
|
|
|
|
2011-08-10 20:19:49 +00:00
|
|
|
buildInputs = [ libnl qt4 ];
|
2011-06-07 21:50:48 +00:00
|
|
|
|
2022-01-30 06:39:05 +00:00
|
|
|
nativeBuildInputs = [ pkg-config python3 ];
|
2011-06-07 21:50:48 +00:00
|
|
|
|
2019-03-25 23:50:07 +00:00
|
|
|
# error: ISO C does not support '__FUNCTION__' predefined identifier [-Werror=pedantic]
|
2019-10-30 11:34:47 +00:00
|
|
|
NIX_CFLAGS_COMPILE = "-Wno-error";
|
2019-03-25 23:50:07 +00:00
|
|
|
|
2018-07-25 21:44:21 +00:00
|
|
|
configureFlags = [ "--without-gobject" "CFLAGS=--std=gnu99" ];
|
2011-06-07 21:50:48 +00:00
|
|
|
|
2013-12-02 16:40:22 +00: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-07 22:53:31 +00:00
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2012-01-14 18:03:34 +00:00
|
|
|
description = "Network Connectivity Tracking library for Desktop Applications";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://launchpad.net/ntrack";
|
2018-10-25 19:46:20 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.lgpl3Plus;
|
2011-09-07 22:53:31 +00:00
|
|
|
};
|
2011-06-07 21:50:48 +00:00
|
|
|
}
|