summary refs log tree commit diff
path: root/pkgs/applications/altcoins/stellar-core.nix
diff options
context:
space:
mode:
authorChris Martin <ch.martin@gmail.com>2017-01-03 01:41:23 -0500
committerChris Martin <ch.martin@gmail.com>2017-01-03 22:06:47 -0500
commit1dc199d9cf48a1c1295021bc8b127a982dd2174e (patch)
tree5c9ec7daf0ab0ee740bf01eeafacf5d0c5d381e2 /pkgs/applications/altcoins/stellar-core.nix
parent59dbcefaa74b940f9b7490c034dc4ff885fa2627 (diff)
downloadnixpkgs-1dc199d9cf48a1c1295021bc8b127a982dd2174e.tar
nixpkgs-1dc199d9cf48a1c1295021bc8b127a982dd2174e.tar.gz
nixpkgs-1dc199d9cf48a1c1295021bc8b127a982dd2174e.tar.bz2
nixpkgs-1dc199d9cf48a1c1295021bc8b127a982dd2174e.tar.lz
nixpkgs-1dc199d9cf48a1c1295021bc8b127a982dd2174e.tar.xz
nixpkgs-1dc199d9cf48a1c1295021bc8b127a982dd2174e.tar.zst
nixpkgs-1dc199d9cf48a1c1295021bc8b127a982dd2174e.zip
stellar-core: init at 0.5.1
Diffstat (limited to 'pkgs/applications/altcoins/stellar-core.nix')
-rw-r--r--pkgs/applications/altcoins/stellar-core.nix46
1 files changed, 46 insertions, 0 deletions
diff --git a/pkgs/applications/altcoins/stellar-core.nix b/pkgs/applications/altcoins/stellar-core.nix
new file mode 100644
index 00000000000..8d365590147
--- /dev/null
+++ b/pkgs/applications/altcoins/stellar-core.nix
@@ -0,0 +1,46 @@
+{ stdenv, lib, fetchgit, autoconf, libtool, automake, pkgconfig, git
+, 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;
+  };
+
+  buildInputs = [ autoconf automake libtool pkgconfig git ];
+
+  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
+  '';
+
+  meta = with stdenv.lib; {
+    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.
+    '';
+    homepage = https://www.stellar.org/;
+    platforms = platforms.linux;
+    maintainers = with maintainers; [ chris-martin ];
+    license = licenses.asl20;
+  };
+}