diff options
Diffstat (limited to 'pkgs/applications/blockchains/parity')
-rw-r--r-- | pkgs/applications/blockchains/parity/beta.nix | 6 | ||||
-rw-r--r-- | pkgs/applications/blockchains/parity/default.nix | 6 | ||||
-rw-r--r-- | pkgs/applications/blockchains/parity/parity.nix | 46 |
3 files changed, 58 insertions, 0 deletions
diff --git a/pkgs/applications/blockchains/parity/beta.nix b/pkgs/applications/blockchains/parity/beta.nix new file mode 100644 index 0000000000000..4b6a88fd410a5 --- /dev/null +++ b/pkgs/applications/blockchains/parity/beta.nix @@ -0,0 +1,6 @@ +let + version = "2.6.1"; + sha256 = "0yvscs2ivy08zla3jhirxhwwaqsn9j5ml4sqbgx6h5rh19c941vh"; + cargoSha256 = "1s3c44cggajrmc504klf4cyb1s4l5ny48yihs9c3fc0n8d064017"; +in + import ./parity.nix { inherit version sha256 cargoSha256; } diff --git a/pkgs/applications/blockchains/parity/default.nix b/pkgs/applications/blockchains/parity/default.nix new file mode 100644 index 0000000000000..873f83190fde7 --- /dev/null +++ b/pkgs/applications/blockchains/parity/default.nix @@ -0,0 +1,6 @@ +let + version = "2.5.6"; + sha256 = "1qkrqkkgjvm27babd6bidhf1n6vdp8rac1zy5kf61nfzplxzr2dy"; + cargoSha256 = "0aa0nkv3jr7cdzswbxghxxv0y65a59jgs1682ch8vrasi0x17m1x"; +in + import ./parity.nix { inherit version sha256 cargoSha256; } diff --git a/pkgs/applications/blockchains/parity/parity.nix b/pkgs/applications/blockchains/parity/parity.nix new file mode 100644 index 0000000000000..23fb27c0525f0 --- /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 { + 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; + }; +} |