diff options
author | Alyssa Ross <hi@alyssa.is> | 2021-01-10 07:13:44 +0000 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2021-01-12 14:07:16 +0000 |
commit | e2698550456abba83c6dcd5d5e5a9990a0b96f8a (patch) | |
tree | 79a56f0df3fa55e470d84b4dff6059fbf487ec18 /nixpkgs/pkgs/applications/blockchains/openethereum | |
parent | 1cdc42df888dc98c347e03bd942ed9825a55bcb3 (diff) | |
parent | 84d74ae9c9cbed73274b8e4e00be14688ffc93fe (diff) | |
download | nixlib-e2698550456abba83c6dcd5d5e5a9990a0b96f8a.tar nixlib-e2698550456abba83c6dcd5d5e5a9990a0b96f8a.tar.gz nixlib-e2698550456abba83c6dcd5d5e5a9990a0b96f8a.tar.bz2 nixlib-e2698550456abba83c6dcd5d5e5a9990a0b96f8a.tar.lz nixlib-e2698550456abba83c6dcd5d5e5a9990a0b96f8a.tar.xz nixlib-e2698550456abba83c6dcd5d5e5a9990a0b96f8a.tar.zst nixlib-e2698550456abba83c6dcd5d5e5a9990a0b96f8a.zip |
Merge commit '84d74ae9c9cbed73274b8e4e00be14688ffc93fe'
Diffstat (limited to 'nixpkgs/pkgs/applications/blockchains/openethereum')
-rw-r--r-- | nixpkgs/pkgs/applications/blockchains/openethereum/default.nix | 48 | ||||
-rw-r--r-- | nixpkgs/pkgs/applications/blockchains/openethereum/lock.patch | 20 |
2 files changed, 68 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/applications/blockchains/openethereum/default.nix b/nixpkgs/pkgs/applications/blockchains/openethereum/default.nix new file mode 100644 index 000000000000..7d5acc62050d --- /dev/null +++ b/nixpkgs/pkgs/applications/blockchains/openethereum/default.nix @@ -0,0 +1,48 @@ +{ lib +, fetchFromGitHub +, rustPlatform +, cmake +, llvmPackages +, openssl +, pkg-config +, systemd +}: + +rustPlatform.buildRustPackage rec { + pname = "openethereum"; + version = "3.0.1"; + + src = fetchFromGitHub { + owner = "openethereum"; + repo = "openethereum"; + rev = "v${version}"; + sha256 = "08dkcrga1x18csh6pw6f54x5xwijppyjhg46cf4p452xc1l3a6ir"; + }; + + cargoSha256 = "1xliragihwjfc5qmfm0ng519bw8a28m1w1yqcl9mpk8zywiybaah"; + + cargoPatches = [ ./lock.patch ]; + + 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"; + homepage = "http://parity.io/ethereum"; + license = licenses.gpl3; + maintainers = with maintainers; [ akru xrelkd ]; + platforms = platforms.linux; + }; +} diff --git a/nixpkgs/pkgs/applications/blockchains/openethereum/lock.patch b/nixpkgs/pkgs/applications/blockchains/openethereum/lock.patch new file mode 100644 index 000000000000..66709480bb72 --- /dev/null +++ b/nixpkgs/pkgs/applications/blockchains/openethereum/lock.patch @@ -0,0 +1,20 @@ +--- /nix/store/hv764a65zmfzw5scjhz5839agv10da6x-source/Cargo.lock 1969-12-31 16:00:01.000000000 -0800 ++++ ./Cargo.lock 2020-07-31 21:30:31.146750066 -0700 +@@ -3113,7 +3113,7 @@ + + [[package]] + name = "openethereum" +-version = "3.0.0" ++version = "3.0.1" + dependencies = [ + "ansi_term", + "atty", +@@ -3562,7 +3562,7 @@ + + [[package]] + name = "parity-version" +-version = "3.0.0" ++version = "3.0.1" + dependencies = [ + "parity-bytes", + "rlp", |