about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/blockchains/parity/parity.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/applications/blockchains/parity/parity.nix')
-rw-r--r--nixpkgs/pkgs/applications/blockchains/parity/parity.nix44
1 files changed, 44 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/applications/blockchains/parity/parity.nix b/nixpkgs/pkgs/applications/blockchains/parity/parity.nix
new file mode 100644
index 000000000000..fbc43cd3402c
--- /dev/null
+++ b/nixpkgs/pkgs/applications/blockchains/parity/parity.nix
@@ -0,0 +1,44 @@
+{ version
+, sha256
+, cargoSha256
+}:
+
+{ lib
+, fetchFromGitHub
+, rustPlatform
+
+, cmake
+, openssl
+, pkgconfig
+, systemd
+}:
+
+rustPlatform.buildRustPackage rec {
+  pname = "parity";
+  inherit version;
+  inherit cargoSha256;
+
+  src = fetchFromGitHub {
+    owner = "paritytech";
+    repo = "parity-ethereum";
+    rev = "v${version}";
+    inherit sha256;
+  };
+
+  nativeBuildInputs = [ cmake pkgconfig ];
+
+  buildInputs = [ openssl systemd ];
+
+  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;
+  };
+}