From b26135cd5c8b37a33d69d74917837aef17d1d05c Mon Sep 17 00:00:00 2001 From: Shogo Takata Date: Thu, 28 Nov 2024 16:34:07 +0900 Subject: [PATCH] cargo-feature: fix build failure --- pkgs/by-name/ca/cargo-feature/package.nix | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/ca/cargo-feature/package.nix b/pkgs/by-name/ca/cargo-feature/package.nix index 81f0a1c62bb60..469099900219a 100644 --- a/pkgs/by-name/ca/cargo-feature/package.nix +++ b/pkgs/by-name/ca/cargo-feature/package.nix @@ -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 + ]; }; } -