eb11feaa0b
Changes the default fetcher in the Rust Platform to be the newer `fetchCargoTarball`, and changes every application using the current default to instead opt out. This commit does not change any hashes or cause any rebuilds. Once integrated, we will start deleting the opt-outs and recomputing hashes. See #79975 for details.
48 lines
909 B
Nix
48 lines
909 B
Nix
{ version
|
|
, sha256
|
|
, cargoSha256
|
|
}:
|
|
|
|
{ lib
|
|
, fetchFromGitHub
|
|
, rustPlatform
|
|
|
|
, cmake
|
|
, openssl
|
|
, pkgconfig
|
|
, systemd
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage {
|
|
pname = "parity";
|
|
inherit version;
|
|
inherit cargoSha256;
|
|
# Delete this on next update; see #79975 for details
|
|
legacyCargoFetcher = true;
|
|
|
|
|
|
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;
|
|
};
|
|
}
|