2011-08-10 22:19:49 +02:00
|
|
|
{ stdenv, fetchurl, glib, qt4, pkgconfig, libnl, pygobject, python }:
|
2011-06-07 23:50:48 +02:00
|
|
|
|
|
|
|
let
|
2011-08-10 22:19:49 +02:00
|
|
|
version = "014";
|
2011-06-07 23:50:48 +02:00
|
|
|
in
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "ntrack-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://launchpad.net/ntrack/main/${version}/+download/${name}.tar.gz";
|
2011-08-10 22:19:49 +02:00
|
|
|
sha256 = "1aqn3q0dj2kk0j9rf02qgbfghlykaas7q0g8wxyz7nd6zg4qhyj2";
|
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
|
|
|
|
|
|
|
buildNativeInputs = [ pkgconfig python ];
|
|
|
|
|
|
|
|
configureFlags = "--without-gobject CFLAGS=--std=gnu99";
|
|
|
|
|
2011-06-07 23:50:55 +02:00
|
|
|
postPatch = ''
|
|
|
|
sed -e "s@/usr\(/lib/ntrack/modules/\)@$out&@" -i common/ntrack.c
|
|
|
|
'';
|
2011-06-07 23:50:48 +02:00
|
|
|
}
|