2018-02-21 09:11:47 +00:00
|
|
|
{ version
|
|
|
|
, sha256
|
|
|
|
, cargoSha256
|
|
|
|
}:
|
|
|
|
|
2019-07-31 09:06:49 +01:00
|
|
|
{ lib
|
2018-02-21 09:11:47 +00:00
|
|
|
, fetchFromGitHub
|
2019-06-26 07:17:52 +01:00
|
|
|
, rustPlatform
|
2019-07-31 09:06:49 +01:00
|
|
|
|
2019-08-30 18:41:43 +01:00
|
|
|
, cmake
|
2018-02-21 09:11:47 +00:00
|
|
|
, openssl
|
2019-08-30 18:41:43 +01:00
|
|
|
, pkgconfig
|
2018-02-21 09:11:47 +00:00
|
|
|
, systemd
|
|
|
|
}:
|
|
|
|
|
2019-08-13 22:52:01 +01:00
|
|
|
rustPlatform.buildRustPackage {
|
2019-07-31 09:06:49 +01:00
|
|
|
pname = "parity";
|
|
|
|
inherit version;
|
2018-12-08 19:46:13 +00:00
|
|
|
inherit cargoSha256;
|
2018-02-21 09:11:47 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "paritytech";
|
2018-08-03 15:54:30 +01:00
|
|
|
repo = "parity-ethereum";
|
2018-02-21 09:11:47 +00:00
|
|
|
rev = "v${version}";
|
|
|
|
inherit sha256;
|
|
|
|
};
|
|
|
|
|
2019-08-30 18:41:43 +01:00
|
|
|
nativeBuildInputs = [ cmake pkgconfig ];
|
|
|
|
|
|
|
|
buildInputs = [ openssl systemd ];
|
2018-02-21 09:11:47 +00:00
|
|
|
|
2019-06-26 07:57:30 +01:00
|
|
|
cargoBuildFlags = [ "--features final" ];
|
|
|
|
|
2018-12-08 19:46:13 +00:00
|
|
|
# test result: FAILED. 80 passed; 12 failed; 0 ignored; 0 measured; 0 filtered out
|
2018-02-21 09:11:47 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
2019-07-31 09:06:49 +01:00
|
|
|
meta = with lib; {
|
2018-02-21 09:11:47 +00:00
|
|
|
description = "Fast, light, robust Ethereum implementation";
|
2019-06-26 07:17:52 +01:00
|
|
|
homepage = "http://parity.io";
|
2018-02-21 09:11:47 +00:00
|
|
|
license = licenses.gpl3;
|
2019-07-31 09:06:49 +01:00
|
|
|
maintainers = with maintainers; [ akru xrelkd ];
|
2018-03-01 20:26:47 +00:00
|
|
|
platforms = platforms.linux;
|
2018-02-21 09:11:47 +00:00
|
|
|
};
|
|
|
|
}
|