···3, lib
4, llvmPackages
5, protobuf
06, rustPlatform
7, stdenv
8, writeShellScriptBin
9, Security
010}:
11rustPlatform.buildRustPackage rec {
12 pname = "polkadot";
13- version = "0.9.36";
1415 src = fetchFromGitHub {
16 owner = "paritytech";
17 repo = "polkadot";
18 rev = "v${version}";
19- sha256 = "sha256-HzQFlnn+SPasI0g0DYDCRoFCMVyxlUmEQAobvzRnAW4=";
2021 # the build process of polkadot requires a .git folder in order to determine
22 # the git commit hash that is being built and add it to the version string.
···32 '';
33 };
3435- cargoSha256 = "sha256-P31GW/1HiaZLF6e8Fq1YnH1ZLhiOhURm8st9a4KRlJU=";
3637- buildInputs = lib.optionals stdenv.isDarwin [ Security ];
3839 nativeBuildInputs = [ rustPlatform.bindgenHook ];
40···44 '';
4546 PROTOC = "${protobuf}/bin/protoc";
04748 # NOTE: We don't build the WASM runtimes since this would require a more
49 # complicated rust environment setup and this is only needed for developer
···3, lib
4, llvmPackages
5, protobuf
6+, rocksdb
7, rustPlatform
8, stdenv
9, writeShellScriptBin
10, Security
11+, SystemConfiguration
12}:
13rustPlatform.buildRustPackage rec {
14 pname = "polkadot";
15+ version = "0.9.37";
1617 src = fetchFromGitHub {
18 owner = "paritytech";
19 repo = "polkadot";
20 rev = "v${version}";
21+ hash = "sha256-/mgJNjliPUmMkhT/1oiX9+BJHfY3SMsKfFv9HCyWRQQ=";
2223 # the build process of polkadot requires a .git folder in order to determine
24 # the git commit hash that is being built and add it to the version string.
···34 '';
35 };
3637+ cargoHash = "sha256-o+APFYKgA3zjQSGrkpnyf5LEBBqvZtcfWlzCk6nL02A=";
3839+ buildInputs = lib.optionals stdenv.isDarwin [ Security SystemConfiguration ];
4041 nativeBuildInputs = [ rustPlatform.bindgenHook ];
42···46 '';
4748 PROTOC = "${protobuf}/bin/protoc";
49+ ROCKSDB_LIB_DIR = "${rocksdb}/lib";
5051 # NOTE: We don't build the WASM runtimes since this would require a more
52 # complicated rust environment setup and this is only needed for developer