at v192 34 lines 839 B view raw
1{ stdenv, fetchFromGitHub, scons, pkgconfig, openssl, protobuf, boost, zlib}: 2 3stdenv.mkDerivation rec { 4 name = "rippled-${version}"; 5 version = "0.28.1"; 6 7 src = fetchFromGitHub { 8 owner = "ripple"; 9 repo = "rippled"; 10 rev = version; 11 sha256 = "0wh8dwdg0gp7smcx40cpqanl2m2hihmx3irqh692svakbl3df3vz"; 12 }; 13 14 postPatch = '' 15 sed -i -e "s@ENV = dict.*@ENV = os.environ@g" SConstruct 16 ''; 17 18 buildInputs = [ scons pkgconfig openssl protobuf boost zlib ]; 19 20 buildPhase = "scons"; 21 22 installPhase = '' 23 mkdir -p $out/bin 24 cp build/rippled $out/bin/ 25 ''; 26 27 meta = with stdenv.lib; { 28 description = "Ripple P2P payment network reference server"; 29 homepage = https://ripple.com; 30 maintainers = [ maintainers.emery maintainers.offline ]; 31 license = licenses.isc; 32 platforms = [ "x86_64-linux" ]; 33 }; 34}