mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-18 03:34:58 +00:00
Merge pull request #247533 from figsoda/unused
cargo-unused-features: 0.1.7 -> 0.2.0
This commit is contained in:
commit
1f64cd59a4
@ -3,6 +3,7 @@
|
||||
, fetchCrate
|
||||
, curl
|
||||
, pkg-config
|
||||
, libgit2_1_5
|
||||
, openssl
|
||||
, stdenv
|
||||
, darwin
|
||||
@ -10,14 +11,14 @@
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "cargo-unused-features";
|
||||
version = "0.1.7";
|
||||
version = "0.2.0";
|
||||
|
||||
src = fetchCrate {
|
||||
inherit pname version;
|
||||
sha256 = "sha256-PdSR2nZbRzV2Kg2LNEpI7/Us+r8Gy6XLdUzMLei5r8c=";
|
||||
hash = "sha256-gdwIbbQDw/DgBV9zY2Rk/oWjPv1SS/+oFnocsMo2Axo=";
|
||||
};
|
||||
|
||||
cargoSha256 = "sha256-Y0U5Qzj+S7zoXWemcSfMn0YS7wCAPj+ER0jao+f2B28=";
|
||||
cargoHash = "sha256-K9I7Eg43BS2SKq5zZ3eZrMkmuHAx09OX240sH0eGs+k=";
|
||||
|
||||
nativeBuildInputs = [
|
||||
curl.dev
|
||||
@ -26,11 +27,12 @@ rustPlatform.buildRustPackage rec {
|
||||
|
||||
buildInputs = [
|
||||
curl
|
||||
libgit2_1_5
|
||||
openssl
|
||||
] ++ lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [
|
||||
CoreFoundation
|
||||
Security
|
||||
]);
|
||||
] ++ lib.optionals stdenv.isDarwin [
|
||||
darwin.apple_sdk.frameworks.CoreFoundation
|
||||
darwin.apple_sdk.frameworks.Security
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "A tool to find potential unused enabled feature flags and prune them";
|
||||
|
Loading…
Reference in New Issue
Block a user