stellar-core: init at 0.5.1

+65
+2
pkgs/applications/altcoins/default.nix
··· 32 32 primecoin = callPackage ./primecoin.nix { withGui = true; }; 33 33 primecoind = callPackage ./primecoin.nix { withGui = false; }; 34 34 35 + stellar-core = callPackage ./stellar-core.nix { }; 36 + 35 37 }
+15
pkgs/applications/altcoins/stellar-core-dirty-version.patch
··· 1 + Subject: Prevent "-dirty" from being erroneously added to the version 2 + 3 + diff --git a/src/Makefile.am b/src/Makefile.am 4 + index d36d1a3..00048fc 100644 5 + --- a/src/Makefile.am 6 + +++ b/src/Makefile.am 7 + @@ -28,7 +28,7 @@ always: 8 + # Always rebuild because .git/HEAD is a symbolic ref one can't depend on 9 + StellarCoreVersion.h: always 10 + @vers=$$(cd "$(srcdir)" \ 11 + - && git describe --always --dirty --tags 2>/dev/null \ 12 + + && git describe --always --tags 2>/dev/null \ 13 + || echo "$(PACKAGE) $(VERSION)"); \ 14 + echo "#define STELLAR_CORE_VERSION \"$$vers\"" > $@~ 15 + @if cmp -s $@~ $@; then rm -f $@~; else \
+46
pkgs/applications/altcoins/stellar-core.nix
··· 1 + { stdenv, lib, fetchgit, autoconf, libtool, automake, pkgconfig, git 2 + , bison, flex, postgresql }: 3 + 4 + let 5 + pname = "stellar-core"; 6 + version = "0.5.1"; 7 + 8 + in stdenv.mkDerivation { 9 + name = "${pname}-${version}"; 10 + 11 + src = fetchgit { 12 + url = "https://github.com/stellar/stellar-core.git"; 13 + rev = "refs/tags/v${version}"; 14 + sha256 = "0ldw3qr0sajgam38z2w2iym0214ial6iahbzx3b965cw92n8n88z"; 15 + fetchSubmodules = true; 16 + leaveDotGit = true; 17 + }; 18 + 19 + buildInputs = [ autoconf automake libtool pkgconfig git ]; 20 + 21 + propagatedBuildInputs = [ bison flex postgresql ]; 22 + 23 + patches = [ ./stellar-core-dirty-version.patch ]; 24 + 25 + preConfigure = '' 26 + # Everything needs to be staged in git because the build uses 27 + # `git ls-files` to search for source files to compile. 28 + git add . 29 + 30 + ./autogen.sh 31 + ''; 32 + 33 + meta = with stdenv.lib; { 34 + description = "Implements the Stellar Consensus Protocol, a federated consensus protocol"; 35 + longDescription = '' 36 + Stellar-core is the backbone of the Stellar network. It maintains a 37 + local copy of the ledger, communicating and staying in sync with other 38 + instances of stellar-core on the network. Optionally, stellar-core can 39 + store historical records of the ledger and participate in consensus. 40 + ''; 41 + homepage = https://www.stellar.org/; 42 + platforms = platforms.linux; 43 + maintainers = with maintainers; [ chris-martin ]; 44 + license = licenses.asl20; 45 + }; 46 + }
+2
pkgs/top-level/all-packages.nix
··· 12324 12324 go-ethereum = self.altcoins.go-ethereum; 12325 12325 ethabi = self.altcoins.ethabi; 12326 12326 12327 + stellar-core = self.altcoins.stellar-core; 12328 + 12327 12329 aumix = callPackage ../applications/audio/aumix { 12328 12330 gtkGUI = false; 12329 12331 };