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}";
|
2015-09-10 13:33:14 +03:00
|
|
|
version = "0.30.0-rc1";
|
2014-03-27 02:12:00 +04:00
|
|
|
|
2014-11-01 04:07:26 +03:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ripple";
|
|
|
|
repo = "rippled";
|
2015-03-18 22:30:49 +03:00
|
|
|
rev = version;
|
2015-09-10 13:33:14 +03:00
|
|
|
sha256 = "0l1dg29mg6wsdkh0lwi2znpl2wcm6bs6d3lswk5g1m1nk2mk7lr7";
|
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
|
|
|
|
2015-06-08 15:15:07 +03:00
|
|
|
buildPhase = "scons";
|
2014-03-27 02:12:00 +04:00
|
|
|
|
|
|
|
installPhase = ''
|
2015-03-18 22:30:49 +03:00
|
|
|
mkdir -p $out/bin
|
2014-03-27 02:12:00 +04:00
|
|
|
cp build/rippled $out/bin/
|
|
|
|
'';
|
|
|
|
|
2015-03-18 22:30:49 +03:00
|
|
|
meta = with stdenv.lib; {
|
2014-03-27 02:12:00 +04:00
|
|
|
description = "Ripple P2P payment network reference server";
|
2014-09-13 15:51:39 +04:00
|
|
|
homepage = https://ripple.com;
|
2015-12-06 00:41:25 +03:00
|
|
|
maintainers = with maintainers; [ ehmry offline ];
|
2015-03-18 22:30:49 +03:00
|
|
|
license = licenses.isc;
|
2015-04-16 19:16:14 +03:00
|
|
|
platforms = [ "x86_64-linux" ];
|
2014-03-27 02:12:00 +04:00
|
|
|
};
|
2014-09-19 21:56:08 +04:00
|
|
|
}
|