2014-11-01 04:07:26 +03:00
|
|
|
{ stdenv, fetchFromGitHub, scons, pkgconfig, openssl, protobuf, boost, zlib}:
|
2014-03-27 02:12:00 +04:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "rippled-${version}";
|
2014-11-01 04:07:26 +03:00
|
|
|
version = "0.26.0";
|
2014-03-27 02:12:00 +04:00
|
|
|
|
2014-11-01 04:07:26 +03:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ripple";
|
|
|
|
repo = "rippled";
|
|
|
|
rev = "0.26.2";
|
|
|
|
sha256 = "06hcc3nnzp9f6j00890f41rrn4djwlcwkzmqnw4yra74sswgji5y";
|
2014-03-27 02:12:00 +04:00
|
|
|
};
|
|
|
|
|
2014-11-01 04:07:26 +03:00
|
|
|
postPatch = ''
|
|
|
|
sed -i -e "s@ENV = dict.*@ENV = os.environ@g" SConstruct
|
|
|
|
'';
|
2014-03-27 02:12:00 +04:00
|
|
|
|
2014-09-19 21:56:08 +04:00
|
|
|
buildInputs = [ scons pkgconfig openssl protobuf boost zlib ];
|
2014-03-27 02:12:00 +04:00
|
|
|
|
|
|
|
buildPhase = "scons build/rippled";
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp build/rippled $out/bin/
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Ripple P2P payment network reference server";
|
2014-09-13 15:51:39 +04:00
|
|
|
homepage = https://ripple.com;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.emery ];
|
2014-03-27 02:12:00 +04:00
|
|
|
license = stdenv.lib.licenses.isc;
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
};
|
2014-09-19 21:56:08 +04:00
|
|
|
}
|