1{ lib, rustPlatform, fetchFromGitHub, stdenv, libiconv }:
2
3rustPlatform.buildRustPackage rec {
4 pname = "cargo-feature";
5 version = "0.7.0";
6
7 src = fetchFromGitHub {
8 owner = "Riey";
9 repo = pname;
10 rev = "v${version}";
11 sha256 = "sha256-UPpqkz/PwoMaJan9itfldjyTmZmiMb6PzCyu9Vtjj1s=";
12 };
13
14 cargoHash = "sha256-8qrpW/gU7BvxN3nSbFWhbgu5bwsdzYZTS3w3kcwsGbU=";
15
16 buildInputs = lib.optional stdenv.isDarwin libiconv;
17
18 meta = with lib; {
19 description = "Cargo plugin to manage dependency features";
20 mainProgram = "cargo-feature";
21 homepage = "https://github.com/Riey/cargo-feature";
22 license = licenses.mit;
23 platforms = platforms.unix;
24 maintainers = with maintainers; [ riey matthiasbeyer ];
25 };
26}
27