diff options
Diffstat (limited to 'infra/libkookie/nixpkgs/pkgs/applications/blockchains/openethereum/default.nix')
-rw-r--r-- | infra/libkookie/nixpkgs/pkgs/applications/blockchains/openethereum/default.nix | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/infra/libkookie/nixpkgs/pkgs/applications/blockchains/openethereum/default.nix b/infra/libkookie/nixpkgs/pkgs/applications/blockchains/openethereum/default.nix new file mode 100644 index 000000000000..563b2378f845 --- /dev/null +++ b/infra/libkookie/nixpkgs/pkgs/applications/blockchains/openethereum/default.nix @@ -0,0 +1,50 @@ +{ lib +, fetchFromGitHub +, rustPlatform +, cmake +, llvmPackages +, openssl +, pkg-config +, stdenv +, systemd +, darwin +}: + +rustPlatform.buildRustPackage rec { + pname = "openethereum"; + version = "3.1.0"; + + src = fetchFromGitHub { + owner = "openethereum"; + repo = "openethereum"; + rev = "v${version}"; + sha256 = "cs84Zz0nhagGDu5sDFTaFZF3SPEgJU8F4vGX7KLihOM="; + }; + + cargoSha256 = "6suNkHw1BbISb0MkYkUaD+mpUal+kn3y1SFVqzJFqJc="; + + LIBCLANG_PATH = "${llvmPackages.libclang}/lib"; + nativeBuildInputs = [ + cmake + llvmPackages.clang + llvmPackages.libclang + pkg-config + ]; + + buildInputs = [ openssl ] + ++ stdenv.lib.optionals stdenv.isLinux [ systemd ] + ++ stdenv.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 = stdenv.lib.platforms.unix; + }; +} |