Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
68 lines
1.2 KiB
Nix
68 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
bison,
|
|
meson,
|
|
ninja,
|
|
pkg-config,
|
|
libmnl,
|
|
libuecc,
|
|
libsodium,
|
|
libcap,
|
|
json_c,
|
|
openssl,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "fastd";
|
|
version = "23";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "neocturne";
|
|
repo = "fastd";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-Sz6VEjKziL/w2a4VWFfMPDYvm7UZh5A/NmzP10rJ2r8=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
bison
|
|
meson
|
|
ninja
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs = [
|
|
json_c
|
|
libcap
|
|
libsodium
|
|
libuecc
|
|
openssl
|
|
]
|
|
++ lib.optionals (stdenv.hostPlatform.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
|
|
herbetom
|
|
];
|
|
mainProgram = "fastd";
|
|
};
|
|
}
|