parity: 2.5.11 -> 2.7.2

Per comment in the upstream release notes, the `beta` track is no longer
maintained, and parity only has `stable` releases, so this deletes the beta
expression entirely.
https://github.com/paritytech/parity-ethereum/releases

This also updates to the new fetchCargoTarball implementation as part of #79975
This commit is contained in:
Benjamin Hipple 2020-02-14 20:31:42 -05:00
parent ebf01d5614
commit 991276361b
4 changed files with 47 additions and 60 deletions

View File

@ -1,6 +0,0 @@
let
version = "2.6.6";
sha256 = "1gx5qg9c588d5m564bnbly86663yrzb2hmlgv9zplwba7p0lpphl";
cargoSha256 = "1xqmnirx2r91q5gy1skxl0f79xvaqzimq3l0cj4xvfms7mpdfbg1";
in
import ./parity.nix { inherit version sha256 cargoSha256; }

View File

@ -1,6 +1,46 @@
let
version = "2.5.11";
sha256 = "1x2p559g2f30520v3kn46n737l5s1kwrn962dv73s6mb6n1lhs55";
cargoSha256 = "16nf6y0hyffwdhxn1w4ms4zycs5lkzir8sj6c2lgsabig057hb6z";
in
import ./parity.nix { inherit version sha256 cargoSha256; }
{ lib
, fetchFromGitHub
, rustPlatform
, cmake
, llvmPackages
, openssl
, pkg-config
, systemd
}:
rustPlatform.buildRustPackage rec {
pname = "parity";
version = "2.7.2";
src = fetchFromGitHub {
owner = "paritytech";
repo = "parity-ethereum";
rev = "v${version}";
sha256 = "09cvqk0h9c26famh3f1nc3g74cd0zk6klys977yr1f13bgqmzx0x";
};
cargoSha256 = "1fdymy8hvn137i5y4flyhlxwjxkd2cd6gq81i1429gk7j3h085ig";
LIBCLANG_PATH = "${llvmPackages.libclang}/lib";
nativeBuildInputs = [
cmake
llvmPackages.clang
llvmPackages.libclang
pkg-config
];
buildInputs = [ openssl systemd ];
cargoBuildFlags = [ "--features final" ];
# test result: FAILED. 88 passed; 13 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;
};
}

View File

@ -1,47 +0,0 @@
{ 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;
};
}

View File

@ -22742,7 +22742,7 @@ in
zcash = callPackage ../applications/blockchains/zcash { };
parity = callPackage ../applications/blockchains/parity { };
parity-beta = callPackage ../applications/blockchains/parity/beta.nix { };
parity-ui = callPackage ../applications/blockchains/parity-ui { };
polkadot = callPackage ../applications/blockchains/polkadot { };