2020-05-23 08:21:30 +00:00
|
|
|
{ stdenv, fetchFromGitHub, cmake, bison, pkgconfig
|
|
|
|
, libuecc, libsodium, libcap, json_c, openssl }:
|
2016-10-13 19:41:22 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "fastd";
|
2020-05-23 08:21:30 +00:00
|
|
|
version = "19";
|
2016-10-13 19:41:22 +00:00
|
|
|
|
2020-05-23 08:21:30 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Neoraider";
|
|
|
|
repo = "fastd";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1h3whjvy2n2cyvbkbg4y1z9vlrn790spzbdhj4glwp93xcykhz5i";
|
2016-10-13 19:41:22 +00:00
|
|
|
};
|
|
|
|
|
2017-10-15 13:26:14 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace src/crypto/cipher/CMakeLists.txt \
|
|
|
|
--replace 'add_subdirectory(aes128_ctr)' ""
|
|
|
|
'';
|
|
|
|
|
2016-10-13 19:41:22 +00:00
|
|
|
nativeBuildInputs = [ pkgconfig bison cmake ];
|
2020-05-23 08:21:30 +00:00
|
|
|
buildInputs = [ libuecc libsodium libcap json_c openssl ];
|
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DENABLE_OPENSSL=true"
|
|
|
|
];
|
2016-10-13 19:41:22 +00:00
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Fast and Secure Tunneling Daemon";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://projects.universe-factory.net/projects/fastd/wiki";
|
2016-10-13 19:41:22 +00:00
|
|
|
license = with licenses; [ bsd2 bsd3 ];
|
2016-10-13 20:02:36 +00:00
|
|
|
platforms = platforms.linux;
|
2016-10-13 19:41:22 +00:00
|
|
|
maintainers = with maintainers; [ fpletz ];
|
|
|
|
};
|
|
|
|
}
|