2018-02-21 09:11:47 +00:00
|
|
|
{ version
|
|
|
|
, sha256
|
|
|
|
, cargoSha256
|
|
|
|
, patches
|
|
|
|
}:
|
|
|
|
|
|
|
|
{ stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, rustPlatform
|
|
|
|
, pkgconfig
|
|
|
|
, openssl
|
|
|
|
, systemd
|
2018-08-03 15:54:30 +01:00
|
|
|
, cmake
|
|
|
|
, perl
|
2018-02-21 09:11:47 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
name = "parity-${version}";
|
|
|
|
inherit cargoSha256 patches;
|
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
|
2018-08-03 15:54:30 +01:00
|
|
|
buildInputs = [
|
|
|
|
pkgconfig cmake perl
|
|
|
|
systemd.lib systemd.dev openssl openssl.dev
|
|
|
|
];
|
2018-02-21 09:11:47 +00:00
|
|
|
|
|
|
|
# Some checks failed
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Fast, light, robust Ethereum implementation";
|
|
|
|
homepage = http://parity.io;
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = [ maintainers.akru ];
|
2018-03-01 20:26:47 +00:00
|
|
|
platforms = platforms.linux;
|
2018-02-21 09:11:47 +00:00
|
|
|
};
|
|
|
|
}
|