3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/blockchains/parity/parity.nix
Benjamin Hipple eb11feaa0b treewide: change fetchCargoTarball default to opt-out
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.
2020-02-13 22:41:37 -08:00

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;
};
}