netsniff-ng: use libsodium to build curvetun
This commit is contained in:
parent
b37e3f6233
commit
96812d6adc
@ -1,6 +1,6 @@
|
|||||||
{ stdenv, fetchFromGitHub, bison, flex, geoip, libcli, libnet
|
{ stdenv, fetchFromGitHub, bison, flex, geoip, libcli, libnet
|
||||||
, libnetfilter_conntrack, libnl, libpcap, liburcu, ncurses, perl, pkgconfig
|
, libnetfilter_conntrack, libnl, libpcap, libsodium, liburcu, ncurses, perl
|
||||||
, which, zlib }:
|
, pkgconfig, which, zlib }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
version = "0.5.9-rc4-40-g5107740";
|
version = "0.5.9-rc4-40-g5107740";
|
||||||
@ -13,12 +13,14 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "1z3b7pa5rhz37dhfb1riy1j9lg917bs4z7clqbxm1hzi1x2ln988";
|
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
|
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;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user