Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 
 
 
 

48 linhas
1.4 KiB

  1. { stdenv, fetchgit, autoconf, libtool, automake, pkgconfig, git
  2. , bison, flex, postgresql }:
  3. let
  4. pname = "stellar-core";
  5. version = "0.5.1";
  6. in stdenv.mkDerivation {
  7. name = "${pname}-${version}";
  8. src = fetchgit {
  9. url = "https://github.com/stellar/stellar-core.git";
  10. rev = "refs/tags/v${version}";
  11. sha256 = "0ldw3qr0sajgam38z2w2iym0214ial6iahbzx3b965cw92n8n88z";
  12. fetchSubmodules = true;
  13. leaveDotGit = true;
  14. };
  15. nativeBuildInputs = [ pkgconfig ];
  16. buildInputs = [ autoconf automake libtool git ];
  17. propagatedBuildInputs = [ bison flex postgresql ];
  18. patches = [ ./stellar-core-dirty-version.patch ];
  19. preConfigure = ''
  20. # Everything needs to be staged in git because the build uses
  21. # `git ls-files` to search for source files to compile.
  22. git add .
  23. ./autogen.sh
  24. '';
  25. meta = with stdenv.lib; {
  26. description = "Implements the Stellar Consensus Protocol, a federated consensus protocol";
  27. longDescription = ''
  28. Stellar-core is the backbone of the Stellar network. It maintains a
  29. local copy of the ledger, communicating and staying in sync with other
  30. instances of stellar-core on the network. Optionally, stellar-core can
  31. store historical records of the ledger and participate in consensus.
  32. '';
  33. homepage = "https://www.stellar.org/";
  34. platforms = [ "x86_64-linux" ];
  35. maintainers = with maintainers; [ chris-martin ];
  36. license = licenses.asl20;
  37. };
  38. }