sysdig: fix build with current curl

This commit is contained in:
Robin Gloster 2017-08-12 18:38:10 +02:00
parent 18086d81c3
commit 89ad46d9b4
No known key found for this signature in database
GPG Key ID: 5E4C836C632C2882

View File

@ -29,6 +29,12 @@ stdenv.mkDerivation rec {
"-DluaL_getn(L,i)=((int)lua_objlen(L,i))"
];
postPatch = ''
sed 's|curl/curlbuild\.h|curl/system.h|' -i \
userspace/libsinsp/marathon_http.cpp \
userspace/libsinsp/mesos_http.cpp
'';
preConfigure = ''
export INSTALL_MOD_PATH="$out"
'' + optionalString (kernel != null) ''