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