blob: 20f8adf71cf8dcc7fcb98b6aa8371b347ff6fd3b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
{ lib
, stdenv
, fetchFromGitHub
, bison
, meson
, ninja
, pkg-config
, libmnl
, libuecc
, libsodium
, libcap
, json_c
, openssl
}:
stdenv.mkDerivation rec {
pname = "fastd";
version = "22";
src = fetchFromGitHub {
owner = "Neoraider";
repo = "fastd";
rev = "v${version}";
sha256 = "0qni32j7d3za9f87m68wq8zgalvfxdrx1zxi6l4x7vvmpcw5nhpq";
};
nativeBuildInputs = [
bison
meson
ninja
pkg-config
];
buildInputs = [
json_c
libcap
libsodium
libuecc
openssl
] ++ lib.optionals (stdenv.isLinux) [
libmnl
];
# some options are only available on x86
mesonFlags = lib.optionals (!stdenv.hostPlatform.isx86) [
"-Dcipher_salsa20_xmm=disabled"
"-Dcipher_salsa2012_xmm=disabled"
"-Dmac_ghash_pclmulqdq=disabled"
];
meta = with 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 ];
mainProgram = "fastd";
};
}
|