2012-01-14 18:03:34 +00:00
|
|
|
{ stdenv, fetchurl, glib, qt4, pkgconfig, libnl, pygobject, python }:
|
2011-06-07 22:50:48 +01:00
|
|
|
|
|
|
|
let
|
2012-01-14 18:03:34 +00:00
|
|
|
version = "016";
|
2011-06-07 22:50:48 +01:00
|
|
|
in
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "ntrack-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://launchpad.net/ntrack/main/${version}/+download/${name}.tar.gz";
|
2012-01-14 18:03:34 +00:00
|
|
|
sha256 = "037ig5y0mp327m0hh4pnfr3vmsk3wrxgfjy3645q4ws9vdhx807w";
|
2011-06-07 22:50:48 +01:00
|
|
|
};
|
|
|
|
|
2011-08-10 21:19:49 +01:00
|
|
|
buildInputs = [ libnl qt4 ];
|
2011-06-07 22:50:48 +01:00
|
|
|
|
2012-01-14 18:03:34 +00:00
|
|
|
buildNativeInputs = [ pkgconfig python ];
|
2011-06-07 22:50:48 +01:00
|
|
|
|
|
|
|
configureFlags = "--without-gobject CFLAGS=--std=gnu99";
|
|
|
|
|
2012-01-14 18:03:34 +00:00
|
|
|
patchPhase = ''sed -e "s@/usr\(/lib/ntrack/modules/\)@$out&@" -i common/ntrack.c'';
|
2011-09-07 23:53:31 +01:00
|
|
|
|
2012-01-14 18:03:34 +00:00
|
|
|
meta = {
|
|
|
|
description = "Network Connectivity Tracking library for Desktop Applications";
|
|
|
|
homepage = https://launchpad.net/ntrack;
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.urkud ];
|
2011-09-07 23:53:31 +01:00
|
|
|
};
|
2011-06-07 22:50:48 +01:00
|
|
|
}
|