uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
58
pkgs/tools/networking/fastd/default.nix
Normal file
58
pkgs/tools/networking/fastd/default.nix
Normal file
|
|
@ -0,0 +1,58 @@
|
|||
{ 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 ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue