nearcore: init at 1.25.0 (#168635)

This commit is contained in:
Jörg Thalheim 2022-04-17 11:10:44 +01:00 committed by GitHub
parent 6a289abddd
commit 7a05dabd70
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 44 additions and 0 deletions

View File

@ -0,0 +1,42 @@
{ rustPlatform, lib, fetchFromGitHub
, zlib, elfutils, openssl
, cmake, python3, pkg-config, protobuf, perl, llvmPackages
}:
rustPlatform.buildRustPackage rec {
#https://github.com/near/nearcore
pname = "nearcore";
version = "1.25.0";
src = fetchFromGitHub {
owner = "near";
repo = "nearcore";
# there is also a branch for this version number, so we need to be explicit
rev = "refs/tags/${version}";
sha256 = "sha256-7hiBqJLGIf+kNKJvMQ7KtGZm/SWLY3pT7YDlwbm3HDM=";
};
cargoSha256 = "sha256-EGv4CibSHL9oTAdWK7d/SOzZWPcEB16hTWlWHjKU4wc=";
# don't build SDK samples that require wasm-enabled rust
cargoBuildFlags = [ "-p" "neard" ];
doCheck = false; # needs network
buildInputs = [ zlib elfutils openssl ];
nativeBuildInputs = [
cmake
python3
pkg-config
protobuf
perl
];
LIBCLANG_PATH = "${llvmPackages.libclang.lib}/lib";
BINDGEN_EXTRA_CLANG_ARGS = "-isystem ${llvmPackages.libclang.lib}/lib/clang/${lib.getVersion llvmPackages.clang}/include";
meta = with lib; {
description = "Reference client for NEAR Protocol";
homepage = "https://github.com/near/nearcore";
license = licenses.mit;
maintainers = with maintainers; [ mic92 ];
platforms = platforms.unix;
};
}

View File

@ -8162,6 +8162,8 @@ with pkgs;
ndppd = callPackage ../applications/networking/ndppd { };
nearcore = callPackage ../applications/blockchains/nearcore { };
nebula = callPackage ../tools/networking/nebula { };
nemiver = callPackage ../development/tools/nemiver { };