nixpkgs-suyu/pkgs/servers/rippled/default.nix
John Ericson 531e4b80c9 misc pkgs: Basic sed to get fix pkgconfig and autoreconfHook buildInputs
Only acts on one-line dependency lists.
2017-09-21 15:49:53 -04:00

36 lines
883 B
Nix

{ stdenv, fetchFromGitHub, scons, pkgconfig, openssl, protobuf, boost, zlib}:
stdenv.mkDerivation rec {
name = "rippled-${version}";
version = "0.30.0-rc1";
src = fetchFromGitHub {
owner = "ripple";
repo = "rippled";
rev = version;
sha256 = "0l1dg29mg6wsdkh0lwi2znpl2wcm6bs6d3lswk5g1m1nk2mk7lr7";
};
postPatch = ''
sed -i -e "s@ENV = dict.*@ENV = os.environ@g" SConstruct
'';
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ scons openssl protobuf boost zlib ];
buildPhase = "scons";
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 = with maintainers; [ ehmry offline ];
license = licenses.isc;
platforms = [ "x86_64-linux" ];
broken = true;
};
}