5c41b342d4
rippled: update to 0.27.4
35 lines
853 B
Nix
35 lines
853 B
Nix
{ stdenv, fetchFromGitHub, scons, pkgconfig, openssl, protobuf, boost, zlib}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "rippled-${version}";
|
|
version = "0.27.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ripple";
|
|
repo = "rippled";
|
|
rev = version;
|
|
sha256 = "13xg2baqcf2h1ww2yk371r27726iq8xb4brsj9rqv692aviblqs3";
|
|
};
|
|
|
|
postPatch = ''
|
|
sed -i -e "s@ENV = dict.*@ENV = os.environ@g" SConstruct
|
|
'';
|
|
|
|
buildInputs = [ scons pkgconfig openssl protobuf boost zlib ];
|
|
|
|
buildPhase = "scons build/rippled";
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/bin
|
|
cp build/rippled $out/bin/
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Ripple P2P payment network reference server";
|
|
homepage = https://ripple.com;
|
|
maintainers = [ maintainers.emery maintainers.offline ];
|
|
license = licenses.isc;
|
|
platforms = [ "x86_64-linux" ];
|
|
};
|
|
}
|