diff options
Diffstat (limited to 'pkgs/applications/blockchains/parity/parity.nix')
-rw-r--r-- | pkgs/applications/blockchains/parity/parity.nix | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/pkgs/applications/blockchains/parity/parity.nix b/pkgs/applications/blockchains/parity/parity.nix new file mode 100644 index 0000000000000..79831f3304df4 --- /dev/null +++ b/pkgs/applications/blockchains/parity/parity.nix @@ -0,0 +1,46 @@ +{ version +, sha256 +, cargoSha256 +}: + +{ lib +, fetchFromGitHub +, rustPlatform + +, pkgconfig +, openssl +, systemd +, cmake +, perl +}: + +rustPlatform.buildRustPackage rec { + pname = "parity"; + inherit version; + inherit cargoSha256; + + src = fetchFromGitHub { + owner = "paritytech"; + repo = "parity-ethereum"; + rev = "v${version}"; + inherit sha256; + }; + + buildInputs = [ + pkgconfig cmake perl + systemd.lib systemd.dev openssl openssl.dev + ]; + + cargoBuildFlags = [ "--features final" ]; + + # test result: FAILED. 80 passed; 12 failed; 0 ignored; 0 measured; 0 filtered out + doCheck = false; + + meta = with lib; { + description = "Fast, light, robust Ethereum implementation"; + homepage = "http://parity.io"; + license = licenses.gpl3; + maintainers = with maintainers; [ akru xrelkd ]; + platforms = platforms.linux; + }; +} |