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