nixpkgs/pkgs/servers/rippled/default.nix

37 lines
883 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-09-10 11:33:14 +01:00
version = "0.30.0-rc1";
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-09-10 11:33:14 +01:00
sha256 = "0l1dg29mg6wsdkh0lwi2znpl2wcm6bs6d3lswk5g1m1nk2mk7lr7";
};
2014-11-01 01:07:26 +00:00
postPatch = ''
sed -i -e "s@ENV = dict.*@ENV = os.environ@g" SConstruct
'';
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ scons openssl protobuf boost zlib ];
2015-06-08 13:15:07 +01:00
buildPhase = "scons";
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;
maintainers = with maintainers; [ ehmry offline ];
2015-03-18 19:30:49 +00:00
license = licenses.isc;
2015-04-16 17:16:14 +01:00
platforms = [ "x86_64-linux" ];
2017-08-29 14:19:34 +01:00
broken = true;
};
2014-09-19 18:56:08 +01:00
}