From 2e9390861a9cc84c9758883676b0777ed04b609f Mon Sep 17 00:00:00 2001 From: Jaka Hudoklin Date: Thu, 14 Feb 2019 18:54:17 +0100 Subject: [PATCH] rippled-validatior-keys-tool: init at d7774bcc --- pkgs/servers/rippled/validator-keys-tool.nix | 34 ++++++++++++++++++++ pkgs/top-level/all-packages.nix | 6 ++++ 2 files changed, 40 insertions(+) create mode 100644 pkgs/servers/rippled/validator-keys-tool.nix diff --git a/pkgs/servers/rippled/validator-keys-tool.nix b/pkgs/servers/rippled/validator-keys-tool.nix new file mode 100644 index 000000000000..684e070292c7 --- /dev/null +++ b/pkgs/servers/rippled/validator-keys-tool.nix @@ -0,0 +1,34 @@ +{ stdenv, lib, fetchgit, cmake, openssl, boost, zlib, rippled }: + +stdenv.mkDerivation rec { + name = "rippled-validator-keys-tool-20180927-${builtins.substring 0 7 rev}"; + rev = "d7774bcc1dc9439c586ea1c175fcd5ff3960b15f"; + + src = fetchgit { + url = "https://github.com/ripple/validator-keys-tool.git"; + inherit rev; + sha256 = "1hcbwwa21n692qpbm0vqy5jvvnf4aias309610m4kwdsnzfw0902"; + }; + + nativeBuildInputs = [ cmake ]; + buildInputs = [ openssl boost zlib rippled ]; + + hardeningDisable = ["format"]; + + preConfigure = '' + export CXX="$(command -v $CXX)" + export CC="$(command -v $CC)" + ''; + + installPhase = '' + install -D validator-keys $out/bin/validator-keys + ''; + + meta = with lib; { + description = "Generate master and ephemeral rippled validator keys"; + homepage = https://github.com/ripple/validator-keys-tool; + maintainers = with maintainers; [ offline ]; + license = licenses.isc; + platforms = [ "x86_64-linux" ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index f27260d8e164..fee2303d060f 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -13995,6 +13995,12 @@ in boost = boost167; }; + rippled-validator-keys-tool = callPackage ../servers/rippled/validator-keys-tool.nix { + boost = boost167.override { + enableStatic = true; + }; + }; + s6 = skawarePackages.s6; s6-rc = skawarePackages.s6-rc;