nixpkgs/pkgs/development/libraries/ntrack/default.nix

39 lines
1008 B
Nix
Raw Normal View History

{ stdenv, fetchurl, qt4, pkgconfig, libnl, python }:
let
version = "016";
in
stdenv.mkDerivation rec {
2019-08-13 14:52:01 -07:00
pname = "ntrack";
inherit version;
src = fetchurl {
2019-08-13 14:52:01 -07:00
url = "https://launchpad.net/ntrack/main/${version}/+download/${pname}-${version}.tar.gz";
sha256 = "037ig5y0mp327m0hh4pnfr3vmsk3wrxgfjy3645q4ws9vdhx807w";
};
buildInputs = [ libnl qt4 ];
nativeBuildInputs = [ pkgconfig python ];
2019-03-25 16:50:07 -07:00
# error: ISO C does not support '__FUNCTION__' predefined identifier [-Werror=pedantic]
2019-10-30 04:34:47 -07:00
NIX_CFLAGS_COMPILE = "-Wno-error";
2019-03-25 16:50:07 -07:00
2018-07-25 14:44:21 -07:00
configureFlags = [ "--without-gobject" "CFLAGS=--std=gnu99" ];
2013-12-02 08:40:22 -08:00
# Remove this patch after version 016
patches = [ ./libnl-fix.patch ];
postPatch = ''
sed -e "s@/usr\(/lib/ntrack/modules/\)@$out&@" -i common/ntrack.c
'';
2018-10-25 12:46:20 -07:00
meta = with stdenv.lib; {
description = "Network Connectivity Tracking library for Desktop Applications";
homepage = https://launchpad.net/ntrack;
2018-10-25 12:46:20 -07:00
platforms = platforms.linux;
license = licenses.lgpl3Plus;
};
}