cargo-bisect-rustc: 0.6.4 -> 0.6.5

This commit is contained in:
Theodore Ni 2022-12-03 06:48:24 -08:00
parent 813836d64f
commit d812d3939b
No known key found for this signature in database
GPG Key ID: 48B67583BDDD4474

View File

@ -1,6 +1,7 @@
{ stdenv { stdenv
, lib , lib
, fetchFromGitHub , fetchFromGitHub
, fetchpatch
, rustPlatform , rustPlatform
, pkg-config , pkg-config
, openssl , openssl
@ -12,13 +13,13 @@
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
pname = "cargo-bisect-rustc"; pname = "cargo-bisect-rustc";
version = "0.6.4"; version = "0.6.5";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "rust-lang"; owner = "rust-lang";
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
hash = "sha256-dJpdAg+A7TYm6bGq73aA15hIymbJ56ScyygQLiEboak="; hash = "sha256-E9birF4HmyDZKmwuTb5K4AMmvZQFTmnhFGSxD5bS2qQ=";
}; };
patches = patches =
@ -37,7 +38,13 @@ rustPlatform.buildRustPackage rec {
--subst-var libPath --subst-var libPath
''; '';
in in
lib.optionals stdenv.isLinux [ patchelfPatch ]; lib.optionals stdenv.isLinux [ patchelfPatch ] ++ [
(fetchpatch {
name = "fix-cli-date-bounds-checking.patch";
url = "https://github.com/rust-lang/cargo-bisect-rustc/commit/baffa98e1a1ae53f6f3605303e0d765015d9d3ae.patch";
hash = "sha256-IQlwQvaPUzPK5T4Mbsrdt7Ea3elaPCw2pBCCdBhjtzM=";
})
];
nativeBuildInputs = [ pkg-config ]; nativeBuildInputs = [ pkg-config ];
buildInputs = [ buildInputs = [
@ -46,16 +53,15 @@ rustPlatform.buildRustPackage rec {
Security Security
]; ];
cargoHash = "sha256-Y/CQcIgdG8dCvPF5bmJDySmgzRi6lFU/aJxkyUjYlAM="; cargoHash = "sha256-7tqo8cxAzoDfTU372uW1qUhm+qqyRhz8bQ7oMiRU528=";
checkFlags = [ checkFlags = [
"--skip cli_tests" # https://github.com/rust-lang/cargo-bisect-rustc/issues/226
"--skip test_github" # requires internet "--skip test_github" # requires internet
]; ];
meta = with lib; { meta = with lib; {
description = "Bisects rustc, either nightlies or CI artifacts"; description = "Bisects rustc, either nightlies or CI artifacts";
homepage = "https://github.com/rust-lang/${pname}"; homepage = "https://github.com/rust-lang/cargo-bisect-rustc";
license = with licenses; [ asl20 mit ]; license = with licenses; [ asl20 mit ];
maintainers = with maintainers; [ davidtwco ]; maintainers = with maintainers; [ davidtwco ];
}; };