nearcore: init at 1.25.0 (#168635)

main
Jörg Thalheim 2 years ago committed by GitHub
parent 6a289abddd
commit 7a05dabd70
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 42
      pkgs/applications/blockchains/nearcore/default.nix
  2. 2
      pkgs/top-level/all-packages.nix

@ -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;
};
}

@ -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 { };

Loading…
Cancel
Save