···99}:
1010rustPlatform.buildRustPackage rec {
1111 pname = "polkadot";
1212- version = "0.9.43";
1212+ version = "1.0.0";
13131414 src = fetchFromGitHub {
1515 owner = "paritytech";
1616 repo = "polkadot";
1717 rev = "v${version}";
1818- hash = "sha256-h+9b+KQgdYowHYGr0nPsqibcwOPmBVo9tKi/uEbLhqo=";
1818+ hash = "sha256-izm0rpLzwlhpp3dciQ1zj1boWxhgGnNMG5ceZoZQGEE=";
19192020 # the build process of polkadot requires a .git folder in order to determine
2121 # the git commit hash that is being built and add it to the version string.
···3434 cargoLock = {
3535 lockFile = ./Cargo.lock;
3636 outputHashes = {
3737- "binary-merkle-tree-4.0.0-dev" = "sha256-/8bGqnM/yqtCgVWkIaVEySZSV3XGYuiA3JuyHYTp2lw=";
3737+ "binary-merkle-tree-4.0.0-dev" = "sha256-J09SHQVOLGStMGONdreI5QZlk+uNNKzWRZpGiNJ+lrk=";
3838 "sub-tokens-0.1.0" = "sha256-GvhgZhOIX39zF+TbQWtTCgahDec4lQjH+NqamLFLUxM=";
3939 };
4040 };
4141+4242+ # NOTE: the build process currently tries to read some files to generate
4343+ # documentation from hardcoded paths that aren't compatible with the cargo
4444+ # vendoring strategy, so we need to manually put them in their expected place.
4545+ # this should be fixed with the next polkadot release that includes
4646+ # https://github.com/paritytech/substrate/pull/14570.
4747+ postPatch = ''
4848+ FAST_UNSTAKE_DIR=$PWD/../cargo-vendor-dir/pallet-fast-unstake-4.0.0-dev
4949+ FAST_UNSTAKE_DOCIFY_DIR=$FAST_UNSTAKE_DIR/frame/fast-unstake
5050+5151+ mkdir -p $FAST_UNSTAKE_DOCIFY_DIR
5252+ cp -r $FAST_UNSTAKE_DIR/src $FAST_UNSTAKE_DOCIFY_DIR
5353+ '';
41544255 buildInputs = lib.optionals stdenv.isDarwin [ Security SystemConfiguration ];
4356