ae91cbe6cc
GitOrigin-RevId: 536fe36e23ab0fc8b7f35c24603422eee9fc17a2
50 lines
1.1 KiB
Nix
50 lines
1.1 KiB
Nix
{ lib
|
|
, fetchFromGitHub
|
|
, rustPlatform
|
|
, cmake
|
|
, llvmPackages
|
|
, openssl
|
|
, pkg-config
|
|
, stdenv
|
|
, systemd
|
|
, darwin
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "openethereum";
|
|
version = "3.1.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "openethereum";
|
|
repo = "openethereum";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-RUrJuJF0R0mc7XdLyk915fRWtMfzjp5QE6oeWxHfyEQ=";
|
|
};
|
|
|
|
cargoSha256 = "sha256-b+winsCzU0sXGDX6nUtWq4JrIyTcJ3uva7RlV5VsXfk=";
|
|
|
|
LIBCLANG_PATH = "${llvmPackages.libclang}/lib";
|
|
nativeBuildInputs = [
|
|
cmake
|
|
llvmPackages.clang
|
|
llvmPackages.libclang
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs = [ openssl ]
|
|
++ lib.optionals stdenv.isLinux [ systemd ]
|
|
++ lib.optionals stdenv.isDarwin [ darwin.Security ];
|
|
|
|
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";
|
|
homepage = "http://parity.io/ethereum";
|
|
license = licenses.gpl3;
|
|
maintainers = with maintainers; [ akru xrelkd ];
|
|
platforms = lib.platforms.unix;
|
|
};
|
|
}
|