Unverified Commit d6a5be3c authored by Nick Cao's avatar Nick Cao Committed by GitHub
Browse files

Merge pull request #212257 from andresilva/polkadot-0.9.37

polkadot: 0.9.36 -> 0.9.37
parents 51ba9a53 2fd34488
Loading
Loading
Loading
Loading
+7 −4
Original line number Diff line number Diff line
@@ -3,20 +3,22 @@
, lib
, llvmPackages
, protobuf
, rocksdb
, rustPlatform
, stdenv
, writeShellScriptBin
, Security
, SystemConfiguration
}:
rustPlatform.buildRustPackage rec {
  pname = "polkadot";
  version = "0.9.36";
  version = "0.9.37";

  src = fetchFromGitHub {
    owner = "paritytech";
    repo = "polkadot";
    rev = "v${version}";
    sha256 = "sha256-HzQFlnn+SPasI0g0DYDCRoFCMVyxlUmEQAobvzRnAW4=";
    hash = "sha256-/mgJNjliPUmMkhT/1oiX9+BJHfY3SMsKfFv9HCyWRQQ=";

    # 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.
@@ -32,9 +34,9 @@ rustPlatform.buildRustPackage rec {
    '';
  };

  cargoSha256 = "sha256-P31GW/1HiaZLF6e8Fq1YnH1ZLhiOhURm8st9a4KRlJU=";
  cargoHash = "sha256-o+APFYKgA3zjQSGrkpnyf5LEBBqvZtcfWlzCk6nL02A=";

  buildInputs = lib.optionals stdenv.isDarwin [ Security ];
  buildInputs = lib.optionals stdenv.isDarwin [ Security SystemConfiguration ];

  nativeBuildInputs = [ rustPlatform.bindgenHook ];

@@ -44,6 +46,7 @@ rustPlatform.buildRustPackage rec {
  '';

  PROTOC = "${protobuf}/bin/protoc";
  ROCKSDB_LIB_DIR = "${rocksdb}/lib";

  # NOTE: We don't build the WASM runtimes since this would require a more
  # complicated rust environment setup and this is only needed for developer
+1 −1
Original line number Diff line number Diff line
@@ -34324,7 +34324,7 @@ with pkgs;
  openethereum = callPackage ../applications/blockchains/openethereum { };
  polkadot = callPackage ../applications/blockchains/polkadot {
    inherit (darwin.apple_sdk.frameworks) Security;
    inherit (darwin.apple_sdk.frameworks) Security SystemConfiguration;
  };
  particl-core = callPackage ../applications/blockchains/particl-core { };