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