nixpkgs/pkgs/servers/rippled/default.nix

35 lines
839 B
Nix
Raw Normal View History

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