nixpkgs/pkgs/servers/rippled/default.nix

35 lines
853 B
Nix
Raw Normal View History

2014-11-01 01:07:26 +00:00
{ stdenv, fetchFromGitHub, scons, pkgconfig, openssl, protobuf, boost, zlib}:
stdenv.mkDerivation rec {
name = "rippled-${version}";
2015-04-25 13:20:24 +00:00
version = "0.27.4";
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-04-25 13:20:24 +00:00
sha256 = "13xg2baqcf2h1ww2yk371r27726iq8xb4brsj9rqv692aviblqs3";
};
2014-11-01 01:07:26 +00:00
postPatch = ''
sed -i -e "s@ENV = dict.*@ENV = os.environ@g" SConstruct
'';
2014-09-19 17:56:08 +00:00
buildInputs = [ scons pkgconfig openssl protobuf boost zlib ];
buildPhase = "scons build/rippled";
installPhase = ''
2015-03-18 19:30:49 +00:00
mkdir -p $out/bin
cp build/rippled $out/bin/
'';
2015-03-18 19:30:49 +00:00
meta = with stdenv.lib; {
description = "Ripple P2P payment network reference server";
homepage = https://ripple.com;
2015-03-18 19:30:49 +00:00
maintainers = [ maintainers.emery maintainers.offline ];
license = licenses.isc;
2015-04-16 16:16:14 +00:00
platforms = [ "x86_64-linux" ];
};
2014-09-19 17:56:08 +00:00
}