lol
1{ stdenv, lib, fetchFromGitHub, cmake, openssl, boost, zlib, icu, rippled }:
2
3stdenv.mkDerivation rec {
4 pname = "rippled-validator-keys-tool";
5 version = "0.3.2";
6
7 src = fetchFromGitHub {
8 owner = "ripple";
9 repo = "validator-keys-tool";
10 rev = "5d7efcfeda3bdf6f5dda78056004a7c326321e9b";
11 sha256 = "1irm8asp6plk9xw3ksf4fqnim8h0vj3h96w638lx71pga1h4zvmy";
12 };
13
14 nativeBuildInputs = [ cmake ];
15 buildInputs = [ openssl boost zlib icu rippled ];
16
17 hardeningDisable = ["format"];
18
19 cmakeFlags = [
20 "-Dep_procs=1"
21 ];
22
23 installPhase = ''
24 runHook preInstall
25 install -D validator-keys $out/bin/validator-keys
26 runHook postInstall
27 '';
28
29 meta = with lib; {
30 description = "Generate master and ephemeral rippled validator keys";
31 homepage = "https://github.com/ripple/validator-keys-tool";
32 maintainers = with maintainers; [ offline rmcgibbo ];
33 license = licenses.isc;
34 platforms = [ "x86_64-linux" ];
35 };
36}