16 stdenv.mkDerivation (finalAttrs: {
17 pname = "stellar-core";
20 src = fetchFromGitHub {
22 repo = "stellar-core";
23 rev = "v${finalAttrs.version}";
24 hash = "sha256-lxBn/T01Tsa7tid3mRJUigUwv9d3BAPZhV9Mp1lywBU=";
25 fetchSubmodules = true;
41 propagatedBuildInputs = [
47 enableParallelBuilding = true;
50 # Due to https://github.com/NixOS/nixpkgs/issues/8567 we cannot rely on
51 # having the .git directory present, so directly provide the version
52 substituteInPlace src/Makefile.am --replace '$$vers' 'stellar-core ${finalAttrs.version}';
54 # Everything needs to be staged in git because the build uses
55 # `git ls-files` to search for source files to compile.
63 description = "Implements the Stellar Consensus Protocol, a federated consensus protocol";
64 homepage = "https://www.stellar.org/";
65 license = lib.licenses.asl20;
67 Stellar-core is the backbone of the Stellar network. It maintains a
68 local copy of the ledger, communicating and staying in sync with other
69 instances of stellar-core on the network. Optionally, stellar-core can
70 store historical records of the ledger and participate in consensus.
73 platforms = lib.platforms.linux;