···1-{ lib, stdenv, fetchFromGitHub, autoconf, libtool, automake, pkg-config, git
2-, bison, flex, postgresql, ripgrep, libunwind }:
00000000000034-stdenv.mkDerivation rec {
5 pname = "stellar-core";
6- version = "19.12.0";
78 src = fetchFromGitHub {
9 owner = "stellar";
10- repo = pname;
11- rev = "v${version}";
12- sha256 = "sha256-WpzUEn3BuC2OxrsqYete595m6YWv27QXnTfW1F6CX9k=";
13 fetchSubmodules = true;
14 };
1516- nativeBuildInputs = [ automake autoconf git libtool pkg-config ripgrep ];
00000001718- buildInputs = [ libunwind ];
001920- propagatedBuildInputs = [ bison flex postgresql ];
00002122 enableParallelBuilding = true;
2324 preConfigure = ''
25 # Due to https://github.com/NixOS/nixpkgs/issues/8567 we cannot rely on
26 # having the .git directory present, so directly provide the version
27- substituteInPlace src/Makefile.am --replace '$$vers' '${pname} ${version}';
2829 # Everything needs to be staged in git because the build uses
30 # `git ls-files` to search for source files to compile.
···34 ./autogen.sh
35 '';
3637- meta = with lib; {
38 description = "Implements the Stellar Consensus Protocol, a federated consensus protocol";
0039 longDescription = ''
40 Stellar-core is the backbone of the Stellar network. It maintains a
41 local copy of the ledger, communicating and staying in sync with other
42 instances of stellar-core on the network. Optionally, stellar-core can
43 store historical records of the ledger and participate in consensus.
44 '';
45- homepage = "https://www.stellar.org/";
46- platforms = platforms.linux;
47- maintainers = with maintainers; [ ];
48- license = licenses.asl20;
49 };
50-}
···1+{ autoconf
2+, automake
3+, bison
4+, fetchFromGitHub
5+, flex
6+, git
7+, lib
8+, libtool
9+, libunwind
10+, pkg-config
11+, postgresql
12+, ripgrep
13+, stdenv
14+}:
1516+stdenv.mkDerivation (finalAttrs: {
17 pname = "stellar-core";
18+ version = "19.13.0";
1920 src = fetchFromGitHub {
21 owner = "stellar";
22+ repo = "stellar-core";
23+ rev = "v${finalAttrs.version}";
24+ hash = "sha256-C775tL+x1IX4kfCM/7gOg/V8xunq/rkhIfdkwkhLENk=";
25 fetchSubmodules = true;
26 };
2728+ nativeBuildInputs = [
29+ automake
30+ autoconf
31+ git
32+ libtool
33+ pkg-config
34+ ripgrep
35+ ];
3637+ buildInputs = [
38+ libunwind
39+ ];
4041+ propagatedBuildInputs = [
42+ bison
43+ flex
44+ postgresql
45+ ];
4647 enableParallelBuilding = true;
4849 preConfigure = ''
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}';
5354 # Everything needs to be staged in git because the build uses
55 # `git ls-files` to search for source files to compile.
···59 ./autogen.sh
60 '';
6162+ meta = {
63 description = "Implements the Stellar Consensus Protocol, a federated consensus protocol";
64+ homepage = "https://www.stellar.org/";
65+ license = lib.licenses.asl20;
66 longDescription = ''
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.
71 '';
72+ maintainers = [ ];
73+ platforms = lib.platforms.linux;
0074 };
75+})
···1---- a/Cargo.lock
2-+++ b/Cargo.lock
3-@@ -2468,7 +2468,7 @@ dependencies = [
4- [[package]]
5- name = "svg2pdf"
6- version = "0.5.0"
7--source = "git+https://github.com/typst/svg2pdf.git??tag=v0.5.0#39daf9fc2ee84b62b0e3b174ff8c9017f655af6b"
8-+source = "git+https://github.com/typst/svg2pdf.git#39daf9fc2ee84b62b0e3b174ff8c9017f655af6b"
9- dependencies = [
10- "image",
11- "miniz_oxide",
12---- a/Cargo.toml
13-+++ b/Cargo.toml
14-@@ -84,13 +84,5 @@ reqwest = { version = "0.11.18", default-features = false, features = [
15- "rustls-tls",
16- ] }
17-18--
19--# Typst 0.6.0 does not specify a tag or ref for svg2pdf, so provide one...
20--# ...but Cargo doesn't want to make our lives too easy, and we can't replace the
21--# dependency with another at the same URL. Use a workaroud inspired by
22--# StackOverflow: https://stackoverflow.com/a/72261235
23--[patch."https://github.com/typst/svg2pdf"]
24--svg2pdf = { git = "https://github.com/typst/svg2pdf.git?", tag = "v0.5.0" }
25--
26- [dev-dependencies]
27- temp-dir = "0.1.11"