From 166eadee60ade4793b8209ec1aca3b57e114df94 Mon Sep 17 00:00:00 2001 From: wheelsandmetal Date: Thu, 29 Oct 2020 10:24:59 +0000 Subject: [PATCH] nuraft: init at 1.1.2 --- pkgs/development/libraries/nuraft/default.nix | 24 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 26 insertions(+) create mode 100644 pkgs/development/libraries/nuraft/default.nix diff --git a/pkgs/development/libraries/nuraft/default.nix b/pkgs/development/libraries/nuraft/default.nix new file mode 100644 index 000000000000..1554e1678156 --- /dev/null +++ b/pkgs/development/libraries/nuraft/default.nix @@ -0,0 +1,24 @@ +{ stdenv, fetchFromGitHub, cmake, boost172, asio, openssl, zlib }: + +stdenv.mkDerivation rec { + pname = "nuraft"; + version = "1.1.2"; + + src = fetchFromGitHub { + owner = "eBay"; + repo = "NuRaft"; + rev = "v${version}"; + sha256 = "sha256-l6rG8f+JAWfAJxEZPKRHZo2k8x9WbtSJC3gGCSMHYfs="; + }; + + nativeBuildInputs = [ cmake ]; + buildInputs = [ boost172 asio openssl zlib ]; + + meta = with stdenv.lib; { + homepage = "https://github.com/eBay/NuRaft"; + description = "C++ implementation of Raft core logic as a replication library"; + license = licenses.asl20; + platforms = platforms.linux; + maintainers = with maintainers; [ wheelsandmetal ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 3065dcb8069c..b53ef40c8114 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -14671,6 +14671,8 @@ in ntrack = callPackage ../development/libraries/ntrack { }; + nuraft = callPackage ../development/libraries/nuraft { }; + nuspell = callPackage ../development/libraries/nuspell { }; nuspellWithDicts = dicts: callPackage ../development/libraries/nuspell/wrapper.nix { inherit dicts; };