mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-03 19:43:30 +00:00
43 lines
1.0 KiB
Nix
43 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
rustPlatform,
|
|
fetchFromGitHub,
|
|
stdenv,
|
|
libiconv,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "cargo-feature";
|
|
version = "0.7.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Riey";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-UPpqkz/PwoMaJan9itfldjyTmZmiMb6PzCyu9Vtjj1s=";
|
|
};
|
|
|
|
cargoHash = "sha256-8qrpW/gU7BvxN3nSbFWhbgu5bwsdzYZTS3w3kcwsGbU=";
|
|
|
|
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
|
|
];
|
|
};
|
|
}
|