networkmanager/l2tp: fix format error on x86/32bit

This commit is contained in:
obadz 2016-06-23 12:31:41 +01:00
parent 43b63c1d2b
commit a709f60d7b

View File

@ -25,6 +25,12 @@ stdenv.mkDerivation rec {
substituteInPlace ./src/nm-l2tp-service.c \ substituteInPlace ./src/nm-l2tp-service.c \
--replace /sbin/ipsec ${strongswan}/bin/ipsec \ --replace /sbin/ipsec ${strongswan}/bin/ipsec \
--replace /sbin/xl2tpd ${xl2tpd}/bin/xl2tpd --replace /sbin/xl2tpd ${xl2tpd}/bin/xl2tpd
# Remove when https://github.com/nm-l2tp/network-manager-l2tp/issues/9 gets fixed
# per http://stackoverflow.com/questions/9225567/how-to-print-a-int64-t-type-in-c
sed -i -e 's,^\(#include <string.h>\)$,\1\n#include <inttypes.h>,' ./properties/import-export.c
substituteInPlace ./properties/import-export.c \
--replace '%ld' '%" PRId64 "'
''; '';
preConfigure = "./autogen.sh"; preConfigure = "./autogen.sh";