forked from mirrors/nixpkgs
4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
48 lines
1.4 KiB
Nix
48 lines
1.4 KiB
Nix
{ lib, stdenv, 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;
|
|
};
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
buildInputs = [ autoconf automake libtool 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 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 = [ "x86_64-linux" ];
|
|
maintainers = with maintainers; [ chris-martin ];
|
|
license = licenses.asl20;
|
|
};
|
|
}
|