Merge pull request #236353 from wegank/rippled-bump

rippled: 1.7.3 -> 1.9.4

authored by

Weijia Wang and committed by
GitHub
9295d6ba 381e92a3

+11 -37
+10 -35
pkgs/servers/rippled/default.nix
··· 1 { lib, stdenv, fetchgit, fetchurl, git, cmake, pkg-config 2 - , openssl, boost, grpc, protobuf, libnsl }: 3 4 let 5 sqlite3 = fetchurl rec { ··· 13 enabledStatic = true; 14 }; 15 16 - beast = fetchgit { 17 - url = "https://github.com/boostorg/beast.git"; 18 - rev = "2f9a8440c2432d8a196571d6300404cb76314125"; 19 - sha256 = "1n9ms5cn67b0p0mhldz5psgylds22sm5x22q7knrsf20856vlk5a"; 20 - fetchSubmodules = false; 21 - leaveDotGit = true; 22 - }; 23 - 24 docca = fetchgit { 25 url = "https://github.com/vinniefalco/docca.git"; 26 rev = "335dbf9c3613e997ed56d540cc8c5ff2e28cab2d"; ··· 38 postFetch = "cd $out && git tag ${rev}"; 39 }; 40 41 - rocksdb = fetchgit rec { 42 url = "https://github.com/facebook/rocksdb.git"; 43 rev = "v6.7.3"; 44 sha256 = "0dzn5jg3i2mnnjj24dn9lzi3aajj5ga2akjf64lybyj481lq445k"; ··· 73 fetchSubmodules = false; 74 }; 75 76 - snappy = fetchgit rec { 77 - url = "https://github.com/google/snappy.git"; 78 - rev = "1.1.7"; 79 - sha256 = "1f0i0sz5gc8aqd594zn3py6j4w86gi1xry6qaz2vzyl4w7cb4v35"; 80 - leaveDotGit = true; 81 - fetchSubmodules = false; 82 - postFetch = "cd $out && git tag ${rev}"; 83 - }; 84 - 85 - cares = fetchgit rec { 86 - url = "https://github.com/c-ares/c-ares.git"; 87 - rev = "cares-1_15_0"; 88 - sha256 = "1fkzsyhfk5p5hr4dx4r36pg9xzs0md6cyj1q2dni3cjgqj3s518v"; 89 - leaveDotGit = true; 90 - fetchSubmodules = false; 91 - postFetch = "cd $out && git tag ${rev}"; 92 - }; 93 - 94 google-test = fetchgit { 95 url = "https://github.com/google/googletest.git"; 96 rev = "5ec7f0c4a113e2f18ac2c6cc7df51ad6afc24081"; ··· 116 }; 117 in stdenv.mkDerivation rec { 118 pname = "rippled"; 119 - version = "1.7.3"; 120 121 src = fetchgit { 122 url = "https://github.com/ripple/rippled.git"; 123 rev = version; 124 - sha256 = "008qzb138r2pi0cqj4d6d5f0grlb2gm87m8j0dj8b0giya22xv6s"; 125 leaveDotGit = true; 126 fetchSubmodules = true; 127 }; 128 129 hardeningDisable = ["format"]; 130 - cmakeFlags = ["-Dstatic=OFF" "-DBoost_NO_BOOST_CMAKE=ON"]; 131 132 nativeBuildInputs = [ pkg-config cmake git ]; 133 - buildInputs = [ openssl openssl.dev boostSharedStatic grpc protobuf libnsl ]; 134 135 preConfigure = '' 136 export HOME=$PWD 137 138 git config --global url."file://${rocksdb}".insteadOf "${rocksdb.url}" 139 git config --global url."file://${docca}".insteadOf "${docca.url}" 140 git config --global url."file://${lz4}".insteadOf "${lz4.url}" 141 git config --global url."file://${libarchive}".insteadOf "${libarchive.url}" 142 git config --global url."file://${soci}".insteadOf "${soci.url}" 143 - git config --global url."file://${snappy}".insteadOf "${snappy.url}" 144 git config --global url."file://${nudb}".insteadOf "${nudb.url}" 145 git config --global url."file://${google-benchmark}".insteadOf "${google-benchmark.url}" 146 git config --global url."file://${google-test}".insteadOf "${google-test.url}" ··· 150 substituteInPlace Builds/CMake/deps/Sqlite.cmake --replace "https://www2.sqlite.org/2018/sqlite-amalgamation-3260000.zip" "" 151 substituteInPlace Builds/CMake/deps/Sqlite.cmake --replace "http://www2.sqlite.org/2018/sqlite-amalgamation-3260000.zip" "" 152 substituteInPlace Builds/CMake/deps/Sqlite.cmake --replace "URL ${sqlite3.url}" "URL ${sqlite3}" 153 ''; 154 155 doCheck = true; ··· 162 homepage = "https://github.com/ripple/rippled"; 163 maintainers = with maintainers; [ offline RaghavSood ]; 164 license = licenses.isc; 165 - platforms = [ "x86_64-linux" ]; 166 - knownVulnerabilities = [ "CVE-2022-29077" ]; 167 }; 168 }
··· 1 { lib, stdenv, fetchgit, fetchurl, git, cmake, pkg-config 2 + , openssl, boost, grpc, protobuf, libnsl, rocksdb_6_23, snappy }: 3 4 let 5 sqlite3 = fetchurl rec { ··· 13 enabledStatic = true; 14 }; 15 16 docca = fetchgit { 17 url = "https://github.com/vinniefalco/docca.git"; 18 rev = "335dbf9c3613e997ed56d540cc8c5ff2e28cab2d"; ··· 30 postFetch = "cd $out && git tag ${rev}"; 31 }; 32 33 + rocksdb = fetchgit { 34 url = "https://github.com/facebook/rocksdb.git"; 35 rev = "v6.7.3"; 36 sha256 = "0dzn5jg3i2mnnjj24dn9lzi3aajj5ga2akjf64lybyj481lq445k"; ··· 65 fetchSubmodules = false; 66 }; 67 68 google-test = fetchgit { 69 url = "https://github.com/google/googletest.git"; 70 rev = "5ec7f0c4a113e2f18ac2c6cc7df51ad6afc24081"; ··· 90 }; 91 in stdenv.mkDerivation rec { 92 pname = "rippled"; 93 + version = "1.9.4"; 94 95 src = fetchgit { 96 url = "https://github.com/ripple/rippled.git"; 97 rev = version; 98 leaveDotGit = true; 99 fetchSubmodules = true; 100 + hash = "sha256-VW/VmnhtF2xyHfEud3D6b3n8uTE0a/nDW1GISs5QfwM="; 101 }; 102 103 hardeningDisable = ["format"]; 104 + cmakeFlags = ["-Dstatic=OFF" "-DBoost_NO_BOOST_CMAKE=ON" "-DSNAPPY_INCLUDE_DIR=${snappy}/include" ]; 105 106 nativeBuildInputs = [ pkg-config cmake git ]; 107 + buildInputs = [ openssl openssl.dev boostSharedStatic grpc protobuf libnsl rocksdb_6_23 snappy ]; 108 109 preConfigure = '' 110 export HOME=$PWD 111 112 + git config --global protocol.file.allow always 113 git config --global url."file://${rocksdb}".insteadOf "${rocksdb.url}" 114 git config --global url."file://${docca}".insteadOf "${docca.url}" 115 git config --global url."file://${lz4}".insteadOf "${lz4.url}" 116 git config --global url."file://${libarchive}".insteadOf "${libarchive.url}" 117 git config --global url."file://${soci}".insteadOf "${soci.url}" 118 git config --global url."file://${nudb}".insteadOf "${nudb.url}" 119 git config --global url."file://${google-benchmark}".insteadOf "${google-benchmark.url}" 120 git config --global url."file://${google-test}".insteadOf "${google-test.url}" ··· 124 substituteInPlace Builds/CMake/deps/Sqlite.cmake --replace "https://www2.sqlite.org/2018/sqlite-amalgamation-3260000.zip" "" 125 substituteInPlace Builds/CMake/deps/Sqlite.cmake --replace "http://www2.sqlite.org/2018/sqlite-amalgamation-3260000.zip" "" 126 substituteInPlace Builds/CMake/deps/Sqlite.cmake --replace "URL ${sqlite3.url}" "URL ${sqlite3}" 127 + 128 + substituteInPlace Builds/CMake/deps/Rocksdb.cmake --replace "RocksDB 6.27" "RocksDB" 129 ''; 130 131 doCheck = true; ··· 138 homepage = "https://github.com/ripple/rippled"; 139 maintainers = with maintainers; [ offline RaghavSood ]; 140 license = licenses.isc; 141 + platforms = platforms.linux; 142 }; 143 }
+1 -2
pkgs/top-level/all-packages.nix
··· 26308 libtool = darwin.cctools; 26309 }; 26310 26311 - # Fails to compile with boost <= 1.72 26312 rippled = callPackage ../servers/rippled { 26313 - boost = boost172; 26314 }; 26315 26316 rippled-validator-keys-tool = callPackage ../servers/rippled/validator-keys-tool.nix { };
··· 26308 libtool = darwin.cctools; 26309 }; 26310 26311 rippled = callPackage ../servers/rippled { 26312 + boost = boost177; 26313 }; 26314 26315 rippled-validator-keys-tool = callPackage ../servers/rippled/validator-keys-tool.nix { };