nixpkgs/pkgs/applications/blockchains/parity/parity.nix

45 lines
824 B
Nix
Raw Normal View History

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