Merge pull request #248507 from r-ryantm/auto-update/stellar-core

stellar-core: 19.12.0 -> 19.13.0
This commit is contained in:
Pol Dellaiera 2023-08-12 05:54:37 +02:00 committed by GitHub
commit 2974ea3045
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,30 +1,55 @@
{ lib, stdenv, fetchFromGitHub, autoconf, libtool, automake, pkg-config, git { autoconf
, bison, flex, postgresql, ripgrep, libunwind }: , automake
, bison
, fetchFromGitHub
, flex
, git
, lib
, libtool
, libunwind
, pkg-config
, postgresql
, ripgrep
, stdenv
}:
stdenv.mkDerivation rec { stdenv.mkDerivation (finalAttrs: {
pname = "stellar-core"; pname = "stellar-core";
version = "19.12.0"; version = "19.13.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "stellar"; owner = "stellar";
repo = pname; repo = "stellar-core";
rev = "v${version}"; rev = "v${finalAttrs.version}";
sha256 = "sha256-WpzUEn3BuC2OxrsqYete595m6YWv27QXnTfW1F6CX9k="; hash = "sha256-C775tL+x1IX4kfCM/7gOg/V8xunq/rkhIfdkwkhLENk=";
fetchSubmodules = true; fetchSubmodules = true;
}; };
nativeBuildInputs = [ automake autoconf git libtool pkg-config ripgrep ]; nativeBuildInputs = [
automake
autoconf
git
libtool
pkg-config
ripgrep
];
buildInputs = [ libunwind ]; buildInputs = [
libunwind
];
propagatedBuildInputs = [ bison flex postgresql ]; propagatedBuildInputs = [
bison
flex
postgresql
];
enableParallelBuilding = true; enableParallelBuilding = true;
preConfigure = '' preConfigure = ''
# Due to https://github.com/NixOS/nixpkgs/issues/8567 we cannot rely on # Due to https://github.com/NixOS/nixpkgs/issues/8567 we cannot rely on
# having the .git directory present, so directly provide the version # having the .git directory present, so directly provide the version
substituteInPlace src/Makefile.am --replace '$$vers' '${pname} ${version}'; substituteInPlace src/Makefile.am --replace '$$vers' 'stellar-core ${finalAttrs.version}';
# Everything needs to be staged in git because the build uses # Everything needs to be staged in git because the build uses
# `git ls-files` to search for source files to compile. # `git ls-files` to search for source files to compile.
@ -34,17 +59,17 @@ stdenv.mkDerivation rec {
./autogen.sh ./autogen.sh
''; '';
meta = with lib; { meta = {
description = "Implements the Stellar Consensus Protocol, a federated consensus protocol"; description = "Implements the Stellar Consensus Protocol, a federated consensus protocol";
homepage = "https://www.stellar.org/";
license = lib.licenses.asl20;
longDescription = '' longDescription = ''
Stellar-core is the backbone of the Stellar network. It maintains a Stellar-core is the backbone of the Stellar network. It maintains a
local copy of the ledger, communicating and staying in sync with other local copy of the ledger, communicating and staying in sync with other
instances of stellar-core on the network. Optionally, stellar-core can instances of stellar-core on the network. Optionally, stellar-core can
store historical records of the ledger and participate in consensus. store historical records of the ledger and participate in consensus.
''; '';
homepage = "https://www.stellar.org/"; maintainers = [ ];
platforms = platforms.linux; platforms = lib.platforms.linux;
maintainers = with maintainers; [ ];
license = licenses.asl20;
}; };
} })