mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-14 06:00:33 +03:00
Merge pull request #309328 from andresilva/polkadot-v1.11.0
polkadot: 1.10.0 -> 1.11.0
This commit is contained in:
commit
e1319ca3ab
2 changed files with 1571 additions and 577 deletions
2136
pkgs/applications/blockchains/polkadot/Cargo.lock
generated
2136
pkgs/applications/blockchains/polkadot/Cargo.lock
generated
File diff suppressed because it is too large
Load diff
|
@ -1,5 +1,7 @@
|
||||||
{ fetchFromGitHub
|
{ fetchFromGitHub
|
||||||
, lib
|
, lib
|
||||||
|
, openssl
|
||||||
|
, pkg-config
|
||||||
, protobuf
|
, protobuf
|
||||||
, rocksdb_8_3
|
, rocksdb_8_3
|
||||||
, rust-jemalloc-sys-unprefixed
|
, rust-jemalloc-sys-unprefixed
|
||||||
|
@ -15,13 +17,13 @@ let
|
||||||
in
|
in
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage rec {
|
||||||
pname = "polkadot";
|
pname = "polkadot";
|
||||||
version = "1.10.0";
|
version = "1.11.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "paritytech";
|
owner = "paritytech";
|
||||||
repo = "polkadot-sdk";
|
repo = "polkadot-sdk";
|
||||||
rev = "polkadot-v${version}";
|
rev = "polkadot-v${version}";
|
||||||
hash = "sha256-xRuV/1+OZeoth/lb5OXwVzHl2IWK1G0GgIN0E8EZlYg=";
|
hash = "sha256-q8u2L7CUDUPZrU/i8K5jsqG4Ib0Wh5e/LIUc6Z4SFfY=";
|
||||||
|
|
||||||
# the build process of polkadot requires a .git folder in order to determine
|
# 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.
|
# the git commit hash that is being built and add it to the version string.
|
||||||
|
@ -48,6 +50,7 @@ rustPlatform.buildRustPackage rec {
|
||||||
"ark-secret-scalar-0.0.2" = "sha256-91sODxaj0psMw0WqigMCGO5a7+NenAsRj5ZmW6C7lvc=";
|
"ark-secret-scalar-0.0.2" = "sha256-91sODxaj0psMw0WqigMCGO5a7+NenAsRj5ZmW6C7lvc=";
|
||||||
"common-0.1.0" = "sha256-LHz2dK1p8GwyMimlR7AxHLz1tjTYolPwdjP7pxork1o=";
|
"common-0.1.0" = "sha256-LHz2dK1p8GwyMimlR7AxHLz1tjTYolPwdjP7pxork1o=";
|
||||||
"fflonk-0.1.0" = "sha256-+BvZ03AhYNP0D8Wq9EMsP+lSgPA6BBlnWkoxTffVLwo=";
|
"fflonk-0.1.0" = "sha256-+BvZ03AhYNP0D8Wq9EMsP+lSgPA6BBlnWkoxTffVLwo=";
|
||||||
|
"litep2p-0.3.0" = "sha256-IiJmmSb1+8+HbT/LP/zvhioVBeeGAncf4zo7Czuq6qY=";
|
||||||
"sp-ark-bls12-381-0.4.2" = "sha256-nNr0amKhSvvI9BlsoP+8v6Xppx/s7zkf0l9Lm3DW8w8=";
|
"sp-ark-bls12-381-0.4.2" = "sha256-nNr0amKhSvvI9BlsoP+8v6Xppx/s7zkf0l9Lm3DW8w8=";
|
||||||
"sp-crypto-ec-utils-0.4.1" = "sha256-/Sw1ZM/JcJBokFE4y2mv/P43ciTL5DEm0PDG0jZvMkI=";
|
"sp-crypto-ec-utils-0.4.1" = "sha256-/Sw1ZM/JcJBokFE4y2mv/P43ciTL5DEm0PDG0jZvMkI=";
|
||||||
};
|
};
|
||||||
|
@ -63,13 +66,15 @@ rustPlatform.buildRustPackage rec {
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
|
pkg-config
|
||||||
rustPlatform.bindgenHook
|
rustPlatform.bindgenHook
|
||||||
rustc
|
rustc
|
||||||
rustc.llvmPackages.lld
|
rustc.llvmPackages.lld
|
||||||
];
|
];
|
||||||
|
|
||||||
# NOTE: jemalloc is used by default on Linux with unprefixed enabled
|
# NOTE: jemalloc is used by default on Linux with unprefixed enabled
|
||||||
buildInputs = lib.optionals stdenv.isLinux [ rust-jemalloc-sys-unprefixed ] ++
|
buildInputs = [ openssl ] ++
|
||||||
|
lib.optionals stdenv.isLinux [ rust-jemalloc-sys-unprefixed ] ++
|
||||||
lib.optionals stdenv.isDarwin [ Security SystemConfiguration ];
|
lib.optionals stdenv.isDarwin [ Security SystemConfiguration ];
|
||||||
|
|
||||||
# NOTE: disable building `core`/`std` in wasm environment since rust-src isn't
|
# NOTE: disable building `core`/`std` in wasm environment since rust-src isn't
|
||||||
|
@ -78,6 +83,7 @@ rustPlatform.buildRustPackage rec {
|
||||||
|
|
||||||
# NOTE: we need to force lld otherwise rust-lld is not found for wasm32 target
|
# NOTE: we need to force lld otherwise rust-lld is not found for wasm32 target
|
||||||
CARGO_TARGET_WASM32_UNKNOWN_UNKNOWN_LINKER = "lld";
|
CARGO_TARGET_WASM32_UNKNOWN_UNKNOWN_LINKER = "lld";
|
||||||
|
OPENSSL_NO_VENDOR = 1;
|
||||||
PROTOC = "${protobuf}/bin/protoc";
|
PROTOC = "${protobuf}/bin/protoc";
|
||||||
ROCKSDB_LIB_DIR = "${rocksdb}/lib";
|
ROCKSDB_LIB_DIR = "${rocksdb}/lib";
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue