Skip to content

Commit

Permalink
cargo-feature: fix test failure (#359761)
Browse files Browse the repository at this point in the history
  • Loading branch information
Aleksanaa authored Nov 29, 2024
2 parents 2d2b2dd + b26135c commit 4a3071c
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions pkgs/by-name/ca/cargo-feature/package.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
{ lib, rustPlatform, fetchFromGitHub, stdenv, libiconv }:
{
lib,
rustPlatform,
fetchFromGitHub,
stdenv,
libiconv,
}:

rustPlatform.buildRustPackage rec {
pname = "cargo-feature";
Expand All @@ -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
];
};
}

0 comments on commit 4a3071c

Please sign in to comment.