···9}:
10rustPlatform.buildRustPackage rec {
11 pname = "polkadot";
12- version = "0.9.43";
1314 src = fetchFromGitHub {
15 owner = "paritytech";
16 repo = "polkadot";
17 rev = "v${version}";
18- hash = "sha256-h+9b+KQgdYowHYGr0nPsqibcwOPmBVo9tKi/uEbLhqo=";
1920 # the build process of polkadot requires a .git folder in order to determine
21 # the git commit hash that is being built and add it to the version string.
···34 cargoLock = {
35 lockFile = ./Cargo.lock;
36 outputHashes = {
37- "binary-merkle-tree-4.0.0-dev" = "sha256-/8bGqnM/yqtCgVWkIaVEySZSV3XGYuiA3JuyHYTp2lw=";
38 "sub-tokens-0.1.0" = "sha256-GvhgZhOIX39zF+TbQWtTCgahDec4lQjH+NqamLFLUxM=";
39 };
40 };
00000000000004142 buildInputs = lib.optionals stdenv.isDarwin [ Security SystemConfiguration ];
43
···9}:
10rustPlatform.buildRustPackage rec {
11 pname = "polkadot";
12+ version = "1.0.0";
1314 src = fetchFromGitHub {
15 owner = "paritytech";
16 repo = "polkadot";
17 rev = "v${version}";
18+ hash = "sha256-izm0rpLzwlhpp3dciQ1zj1boWxhgGnNMG5ceZoZQGEE=";
1920 # the build process of polkadot requires a .git folder in order to determine
21 # the git commit hash that is being built and add it to the version string.
···34 cargoLock = {
35 lockFile = ./Cargo.lock;
36 outputHashes = {
37+ "binary-merkle-tree-4.0.0-dev" = "sha256-J09SHQVOLGStMGONdreI5QZlk+uNNKzWRZpGiNJ+lrk=";
38 "sub-tokens-0.1.0" = "sha256-GvhgZhOIX39zF+TbQWtTCgahDec4lQjH+NqamLFLUxM=";
39 };
40 };
41+42+ # NOTE: the build process currently tries to read some files to generate
43+ # documentation from hardcoded paths that aren't compatible with the cargo
44+ # vendoring strategy, so we need to manually put them in their expected place.
45+ # this should be fixed with the next polkadot release that includes
46+ # https://github.com/paritytech/substrate/pull/14570.
47+ postPatch = ''
48+ FAST_UNSTAKE_DIR=$PWD/../cargo-vendor-dir/pallet-fast-unstake-4.0.0-dev
49+ FAST_UNSTAKE_DOCIFY_DIR=$FAST_UNSTAKE_DIR/frame/fast-unstake
50+51+ mkdir -p $FAST_UNSTAKE_DOCIFY_DIR
52+ cp -r $FAST_UNSTAKE_DIR/src $FAST_UNSTAKE_DOCIFY_DIR
53+ '';
5455 buildInputs = lib.optionals stdenv.isDarwin [ Security SystemConfiguration ];
56