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
71
pkgs/development/libraries/opendht/default.nix
Normal file
71
pkgs/development/libraries/opendht/default.nix
Normal file
|
|
@ -0,0 +1,71 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, Security
|
||||
, cmake
|
||||
, pkg-config
|
||||
, asio
|
||||
, nettle
|
||||
, gnutls
|
||||
, msgpack
|
||||
, readline
|
||||
, libargon2
|
||||
, jsoncpp
|
||||
, restinio
|
||||
, http-parser
|
||||
, openssl
|
||||
, fmt
|
||||
, enableProxyServerAndClient ? false
|
||||
, enablePushNotifications ? false
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "opendht";
|
||||
version = "2.4.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "savoirfairelinux";
|
||||
repo = "opendht";
|
||||
rev = version;
|
||||
sha256 = "sha256-vfMzUzTfz8G+E4W/1pX5v2P0RntgSTR61urmxtsrOWM=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
cmake
|
||||
pkg-config
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
asio
|
||||
nettle
|
||||
gnutls
|
||||
msgpack
|
||||
readline
|
||||
libargon2
|
||||
] ++ lib.optionals enableProxyServerAndClient [
|
||||
jsoncpp
|
||||
restinio
|
||||
http-parser
|
||||
openssl
|
||||
fmt
|
||||
] ++ lib.optionals stdenv.isDarwin [
|
||||
Security
|
||||
];
|
||||
|
||||
cmakeFlags = lib.optionals enableProxyServerAndClient [
|
||||
"-DOPENDHT_PROXY_SERVER=ON"
|
||||
"-DOPENDHT_PROXY_CLIENT=ON"
|
||||
] ++ lib.optionals enablePushNotifications [
|
||||
"-DOPENDHT_PUSH_NOTIFICATIONS=ON"
|
||||
];
|
||||
|
||||
outputs = [ "out" "lib" "dev" "man" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "A C++11 Kademlia distributed hash table implementation";
|
||||
homepage = "https://github.com/savoirfairelinux/opendht";
|
||||
license = licenses.gpl3Plus;
|
||||
maintainers = with maintainers; [ taeer olynch thoughtpolice ];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue