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