cargo-feature: fix build failure
This commit is contained in:
parent
fa42b5a5f4
commit
b26135cd5c
@ -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
|
||||
];
|
||||
};
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user