diff options
author | github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> | 2022-11-13 00:02:40 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-13 00:02:40 +0000 |
commit | 32a303c68874c40ec160bdf5d4be354126249913 (patch) | |
tree | 3399c81bd68c90dbe97313dc94a077a57ef7a989 /pkgs/development/tools/rust | |
parent | 06720b0dd1c55d2d898c402b8dc965d547aedfb9 (diff) | |
parent | 1090462258b94bf22b06b8389de09847e26e5c72 (diff) |
Merge master into staging-next
Diffstat (limited to 'pkgs/development/tools/rust')
-rw-r--r-- | pkgs/development/tools/rust/cargo-unused-features/default.nix | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/pkgs/development/tools/rust/cargo-unused-features/default.nix b/pkgs/development/tools/rust/cargo-unused-features/default.nix new file mode 100644 index 0000000000000..c9cd2dfbb5d5e --- /dev/null +++ b/pkgs/development/tools/rust/cargo-unused-features/default.nix @@ -0,0 +1,42 @@ +{ lib +, rustPlatform +, fetchCrate +, curl +, pkg-config +, openssl +, stdenv +, darwin +}: + +rustPlatform.buildRustPackage rec { + pname = "cargo-unused-features"; + version = "0.1.7"; + + src = fetchCrate { + inherit pname version; + sha256 = "sha256-PdSR2nZbRzV2Kg2LNEpI7/Us+r8Gy6XLdUzMLei5r8c="; + }; + + cargoSha256 = "sha256-Y0U5Qzj+S7zoXWemcSfMn0YS7wCAPj+ER0jao+f2B28="; + + nativeBuildInputs = [ + curl.dev + pkg-config + ]; + + buildInputs = [ + curl + openssl + ] ++ lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [ + CoreFoundation + Security + ]); + + meta = with lib; { + description = "A tool to find potential unused enabled feature flags and prune them"; + homepage = "https://github.com/timonpost/cargo-unused-features"; + license = licenses.mit; + maintainers = with maintainers; [ figsoda ]; + mainProgram = "unused-features"; + }; +} |