nixpkgs/pkgs/development/libraries/ntrack/default.nix
Yury G. Kudryashov 799d82249b ntrack-014, use libnl-3.x
svn path=/nixpkgs/trunk/; revision=28469
2011-08-10 20:19:49 +00:00

24 lines
565 B
Nix

{ stdenv, fetchurl, glib, qt4, pkgconfig, libnl, pygobject, python }:
let
version = "014";
in
stdenv.mkDerivation rec {
name = "ntrack-${version}";
src = fetchurl {
url = "http://launchpad.net/ntrack/main/${version}/+download/${name}.tar.gz";
sha256 = "1aqn3q0dj2kk0j9rf02qgbfghlykaas7q0g8wxyz7nd6zg4qhyj2";
};
buildInputs = [ libnl qt4 ];
buildNativeInputs = [ pkgconfig python ];
configureFlags = "--without-gobject CFLAGS=--std=gnu99";
postPatch = ''
sed -e "s@/usr\(/lib/ntrack/modules/\)@$out&@" -i common/ntrack.c
'';
}