2020-02-15 01:31:42 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, rustPlatform
|
|
|
|
, cmake
|
|
|
|
, llvmPackages
|
|
|
|
, openssl
|
|
|
|
, pkg-config
|
|
|
|
, systemd
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
2020-08-01 07:01:08 +01:00
|
|
|
pname = "openethereum";
|
|
|
|
version = "3.0.1";
|
2020-02-15 01:31:42 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2020-08-01 07:01:08 +01:00
|
|
|
owner = "openethereum";
|
|
|
|
repo = "openethereum";
|
2020-02-15 01:31:42 +00:00
|
|
|
rev = "v${version}";
|
2020-08-01 07:01:08 +01:00
|
|
|
sha256 = "08dkcrga1x18csh6pw6f54x5xwijppyjhg46cf4p452xc1l3a6ir";
|
2020-02-15 01:31:42 +00:00
|
|
|
};
|
|
|
|
|
2020-08-01 07:01:08 +01:00
|
|
|
cargoSha256 = "1xliragihwjfc5qmfm0ng519bw8a28m1w1yqcl9mpk8zywiybaah";
|
|
|
|
|
|
|
|
cargoPatches = [ ./lock.patch ];
|
2020-02-15 01:31:42 +00:00
|
|
|
|
|
|
|
LIBCLANG_PATH = "${llvmPackages.libclang}/lib";
|
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
llvmPackages.clang
|
|
|
|
llvmPackages.libclang
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [ openssl systemd ];
|
|
|
|
|
|
|
|
cargoBuildFlags = [ "--features final" ];
|
|
|
|
|
|
|
|
# test result: FAILED. 88 passed; 13 failed; 0 ignored; 0 measured; 0 filtered out
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Fast, light, robust Ethereum implementation";
|
2020-08-01 07:01:08 +01:00
|
|
|
homepage = "http://parity.io/ethereum";
|
2020-02-15 01:31:42 +00:00
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ akru xrelkd ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|