netsniff-ng: use libsodium to build curvetun

This commit is contained in:
Tobias Geerinckx-Rice 2015-01-17 16:46:23 +01:00
parent b37e3f6233
commit 96812d6adc

View File

@ -1,6 +1,6 @@
{ stdenv, fetchFromGitHub, bison, flex, geoip, libcli, libnet
, libnetfilter_conntrack, libnl, libpcap, liburcu, ncurses, perl, pkgconfig
, which, zlib }:
, libnetfilter_conntrack, libnl, libpcap, libsodium, liburcu, ncurses, perl
, pkgconfig, which, zlib }:
stdenv.mkDerivation rec {
version = "0.5.9-rc4-40-g5107740";
@ -13,12 +13,14 @@ stdenv.mkDerivation rec {
sha256 = "1z3b7pa5rhz37dhfb1riy1j9lg917bs4z7clqbxm1hzi1x2ln988";
};
# ./configure is not autoGNU but some home-brewn magic
preConfigure = "patchShebangs configure";
# FIXME: add missing nacl to build curvetun
buildInputs = [ bison flex geoip libcli libnet libnl libnetfilter_conntrack
libpcap liburcu ncurses perl pkgconfig which zlib ];
libpcap libsodium liburcu ncurses perl pkgconfig which zlib ];
# ./configure is not autoGNU but some home-brewn magic
configurePhase = ''
patchShebangs configure
NACL_INC_DIR=${libsodium}/include/sodium NACL_LIB=sodium ./configure
'';
enableParallelBuilding = true;