cargo-feature: fix test failure (#359761)

This commit is contained in:
Aleksana 2024-11-29 21:29:51 +08:00 committed by GitHub
commit 4a3071c613
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,4 +1,10 @@
{ lib, rustPlatform, fetchFromGitHub, stdenv, libiconv }:
{
lib,
rustPlatform,
fetchFromGitHub,
stdenv,
libiconv,
}:
rustPlatform.buildRustPackage rec {
pname = "cargo-feature";
@ -15,13 +21,22 @@ rustPlatform.buildRustPackage rec {
buildInputs = lib.optional stdenv.hostPlatform.isDarwin libiconv;
checkFlags = [
# The following tests require empty CARGO_BUILD_TARGET env variable, but we
# set it ever since https://github.com/NixOS/nixpkgs/pull/298108.
"--skip=add_target_feature"
"--skip=list_optional_deps_as_feature"
];
meta = with lib; {
description = "Cargo plugin to manage dependency features";
mainProgram = "cargo-feature";
homepage = "https://github.com/Riey/cargo-feature";
license = licenses.mit;
platforms = platforms.unix;
maintainers = with maintainers; [ riey matthiasbeyer ];
maintainers = with maintainers; [
riey
matthiasbeyer
];
};
}