2021-01-19 06:50:56 +00:00
|
|
|
{ lib, stdenv, fetchgit, autoconf, libtool, automake, pkg-config, git
|
2017-01-03 06:41:23 +00:00
|
|
|
, bison, flex, postgresql }:
|
|
|
|
|
|
|
|
let
|
|
|
|
pname = "stellar-core";
|
|
|
|
version = "0.5.1";
|
|
|
|
|
|
|
|
in stdenv.mkDerivation {
|
|
|
|
name = "${pname}-${version}";
|
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = "https://github.com/stellar/stellar-core.git";
|
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
sha256 = "0ldw3qr0sajgam38z2w2iym0214ial6iahbzx3b965cw92n8n88z";
|
|
|
|
fetchSubmodules = true;
|
|
|
|
leaveDotGit = true;
|
|
|
|
};
|
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2017-09-05 22:26:13 +01:00
|
|
|
buildInputs = [ autoconf automake libtool git ];
|
2017-01-03 06:41:23 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [ bison flex postgresql ];
|
|
|
|
|
|
|
|
patches = [ ./stellar-core-dirty-version.patch ];
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
# Everything needs to be staged in git because the build uses
|
|
|
|
# `git ls-files` to search for source files to compile.
|
|
|
|
git add .
|
|
|
|
|
|
|
|
./autogen.sh
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2017-01-03 06:41:23 +00:00
|
|
|
description = "Implements the Stellar Consensus Protocol, a federated consensus protocol";
|
|
|
|
longDescription = ''
|
|
|
|
Stellar-core is the backbone of the Stellar network. It maintains a
|
|
|
|
local copy of the ledger, communicating and staying in sync with other
|
|
|
|
instances of stellar-core on the network. Optionally, stellar-core can
|
|
|
|
store historical records of the ledger and participate in consensus.
|
|
|
|
'';
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://www.stellar.org/";
|
2017-01-15 13:02:05 +00:00
|
|
|
platforms = [ "x86_64-linux" ];
|
2017-01-03 06:41:23 +00:00
|
|
|
maintainers = with maintainers; [ chris-martin ];
|
|
|
|
license = licenses.asl20;
|
|
|
|
};
|
|
|
|
}
|