at 23.05-pre 34 lines 985 B view raw
1{ lib, stdenv, fetchurl, qt4, pkg-config, libnl, python3 }: 2 3stdenv.mkDerivation rec { 4 pname = "ntrack"; 5 version = "016"; 6 7 src = fetchurl { 8 url = "https://launchpad.net/ntrack/main/${version}/+download/${pname}-${version}.tar.gz"; 9 sha256 = "037ig5y0mp327m0hh4pnfr3vmsk3wrxgfjy3645q4ws9vdhx807w"; 10 }; 11 12 buildInputs = [ libnl qt4 ]; 13 14 nativeBuildInputs = [ pkg-config python3 ]; 15 16 # error: ISO C does not support '__FUNCTION__' predefined identifier [-Werror=pedantic] 17 NIX_CFLAGS_COMPILE = "-Wno-error"; 18 19 configureFlags = [ "--without-gobject" "CFLAGS=--std=gnu99" ]; 20 21 # Remove this patch after version 016 22 patches = [ ./libnl-fix.patch ]; 23 24 postPatch = '' 25 sed -e "s@/usr\(/lib/ntrack/modules/\)@$out&@" -i common/ntrack.c 26 ''; 27 28 meta = with lib; { 29 description = "Network Connectivity Tracking library for Desktop Applications"; 30 homepage = "https://launchpad.net/ntrack"; 31 platforms = platforms.linux; 32 license = licenses.lgpl3Plus; 33 }; 34}