nixpkgs/pkgs/development/libraries/ntrack/default.nix
Yury G. Kudryashov 2fb2742370 ntrack: fix hardcoded /usr
svn path=/nixpkgs/trunk/; revision=27387
2011-06-07 21:50:55 +00:00

26 lines
599 B
Nix

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