2020-05-29 06:06:01 +00:00
|
|
|
{ stdenv, fetchFromGitHub, cmake, bison, pkgconfig
|
|
|
|
, libuecc, libsodium, libcap, json_c, openssl }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "fastd";
|
2020-05-29 06:06:01 +00:00
|
|
|
version = "19";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-05-29 06:06:01 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Neoraider";
|
|
|
|
repo = "fastd";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1h3whjvy2n2cyvbkbg4y1z9vlrn790spzbdhj4glwp93xcykhz5i";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace src/crypto/cipher/CMakeLists.txt \
|
|
|
|
--replace 'add_subdirectory(aes128_ctr)' ""
|
|
|
|
'';
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkgconfig bison cmake ];
|
2020-05-29 06:06:01 +00:00
|
|
|
buildInputs = [ libuecc libsodium libcap json_c openssl ];
|
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DENABLE_OPENSSL=true"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Fast and Secure Tunneling Daemon";
|
|
|
|
homepage = "https://projects.universe-factory.net/projects/fastd/wiki";
|
|
|
|
license = with licenses; [ bsd2 bsd3 ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ fpletz ];
|
|
|
|
};
|
|
|
|
}
|