Unverified Commit 2c867e34 authored by André Silva's avatar André Silva Committed by GitHub
Browse files

polkadot: 2509-1 -> 2603 (#505639)

parents 9032328f d97218b7
Loading
Loading
Loading
Loading
+9 −7
Original line number Diff line number Diff line
@@ -5,25 +5,22 @@
  openssl,
  pkg-config,
  protobuf,
  rocksdb_8_3,
  rocksdb,
  rust-jemalloc-sys-unprefixed,
  rustPlatform,
  rustc,
  stdenv,
}:

let
  rocksdb = rocksdb_8_3;
in
rustPlatform.buildRustPackage (finalAttrs: {
  pname = "polkadot";
  version = "2509-1";
  version = "2603";

  src = fetchFromGitHub {
    owner = "paritytech";
    repo = "polkadot-sdk";
    rev = "polkadot-stable${finalAttrs.version}";
    hash = "sha256-XisQA5WNmFaFfY7T4EMcwlOD8FUfAjmLDV7NSWsh3vA=";
    hash = "sha256-vm8WUeIkgulCq9nwqQZsA5VHVv3vMEo66UNdHEhtmHY=";

    # the build process of polkadot requires a .git folder in order to determine
    # the git commit hash that is being built and add it to the version string.
@@ -44,7 +41,12 @@ rustPlatform.buildRustPackage (finalAttrs: {
    rm .git_commit
  '';

  cargoHash = "sha256-QqtLr6SvJGYrY0wGZw196amrGqLZg/Nea+QTYM1RzIs=";
  cargoPatches = [
    # make picosimd compile on nix (https://github.com/koute/picosimd/pull/3)
    ./picosimd-0.9.3.patch
  ];

  cargoHash = "sha256-Da18rlsU8s045AzI3dZ6EhYm+CCAQFygrvVCZhudVaY=";

  buildType = "production";
  buildAndTestSubdir = "polkadot";
+16 −0
Original line number Diff line number Diff line
diff --git a/Cargo.lock b/Cargo.lock
index 966130af88..00710f9652 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -15086,9 +15086,9 @@ dependencies = [
 
 [[package]]
 name = "picosimd"
-version = "0.9.2"
+version = "0.9.3"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "af35c838647fef3d6d052e27006ef88ea162336eee33063c50a63f163c18cdeb"
+checksum = "3f8cf1ae70818c6476eb2da0ac8f3f55ecdea41a7aa16824ea6efc4a31cccf41"
 
 [[package]]
 name = "pin-project"