nixpkgs/pkgs/applications/blockchains/polkadot/default.nix

43 lines
1.2 KiB
Nix
Raw Normal View History

2020-09-25 23:41:01 +00:00
{ clang
2018-12-05 14:10:31 +00:00
, fetchFromGitHub
2020-09-25 23:41:01 +00:00
, lib
, llvmPackages
, protobuf
2018-12-05 14:10:31 +00:00
, rustPlatform
}:
rustPlatform.buildRustPackage rec {
2019-08-31 11:41:23 +00:00
pname = "polkadot";
2021-04-09 13:29:19 +00:00
version = "0.8.30";
2018-12-05 14:10:31 +00:00
src = fetchFromGitHub {
owner = "paritytech";
2020-09-25 23:41:01 +00:00
repo = "polkadot";
rev = "v${version}";
2021-04-09 13:29:19 +00:00
sha256 = "sha256-9GCk1gqlQJhuoiKRi7J1qcJlZjlq2ObGicp5tGGDhrY=";
};
2021-04-11 14:51:19 +00:00
cargoSha256 = "sha256-pWqbcargCEkisdGnj08VQdRqjocR7zZhWukhYjfZDqI=";
2020-09-25 23:41:01 +00:00
nativeBuildInputs = [ clang ];
LIBCLANG_PATH = "${llvmPackages.libclang}/lib";
PROTOC = "${protobuf}/bin/protoc";
# NOTE: We don't build the WASM runtimes since this would require a more
2021-01-22 17:16:14 +00:00
# complicated rust environment setup and this is only needed for developer
# environments. The resulting binary is useful for end-users of live networks
# since those just use the WASM blob from the network chainspec.
SKIP_WASM_BUILD = 1;
2018-12-05 14:10:31 +00:00
2020-09-25 23:41:01 +00:00
# We can't run the test suite since we didn't compile the WASM runtimes.
doCheck = false;
2018-12-05 14:10:31 +00:00
2020-09-25 23:41:01 +00:00
meta = with lib; {
2018-12-05 14:10:31 +00:00
description = "Polkadot Node Implementation";
homepage = "https://polkadot.network";
2021-03-06 02:30:43 +00:00
license = licenses.gpl3Only;
maintainers = with maintainers; [ akru andresilva asymmetric RaghavSood ];
2018-12-05 14:10:31 +00:00
platforms = platforms.linux;
};
}