nixpkgs/pkgs/by-name/fa/fastd/package.nix
aleksana 571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
We are migrating packages that meet below requirements:

1. using `callPackage`
2. called path is a directory
3. overriding set is empty (`{ }`)
4. not containing path expressions other than relative path (to
makenixpkgs-vet happy)
5. not referenced by nix files outside of the directory, other
than`pkgs/top-level/all-packages.nix`
6. not referencing nix files outside of the directory
7. not referencing `default.nix` (since it's changed to `package.nix`)
8. `outPath` doesn't change after migration

The tool is here: https://github.com/Aleksanaa/by-name-migrate.
2024-11-09 20:04:51 +08:00

60 lines
1.1 KiB
Nix

{ 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.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 ];
mainProgram = "fastd";
};
}