summary refs log tree commit diff
path: root/pkgs/servers/rippled/default.nix
blob: 1325cebae4052a21f739815b3a5477b828143991 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{ stdenv, fetchurl, scons, pkgconfig, openssl, protobuf, boost155, zlib}:

stdenv.mkDerivation rec {
  name = "rippled-${version}";
  version = "0.23.0";

  src = fetchurl {
    url = "https://github.com/ripple/rippled/archive/${version}.tar.gz";
    sha256 = "0js734sk11jn19fyp403mk6p62azlc6s9kyhr5jfg466fiak537p";
  };

  patches = [ ./scons-env.patch ];

  buildInputs = [ scons pkgconfig openssl protobuf boost155 zlib ];

  RIPPLED_BOOST_HOME = boost155.out;
  RIPPLED_ZLIB_HOME = zlib.out;
  buildPhase = "scons build/rippled";

  installPhase = ''
    mkdir -p $out/bin    
    cp build/rippled $out/bin/
  '';

  meta = {
    description = "Ripple P2P payment network reference server";
    homepage = https://ripple.com;
    maintainers = [ stdenv.lib.maintainers.emery ];
    license = stdenv.lib.licenses.isc;
    platforms = stdenv.lib.platforms.linux;
  };
}