2021-05-20 23:08:51 +00:00
|
|
|
{ lib, rustPlatform, fetchFromGitHub, stdenv, libiconv }:
|
2021-04-08 16:26:57 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "cargo-feature";
|
|
|
|
version = "0.5.2";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Riey";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "0n5kzh756ghfs3cydlcn9mfvpgwy1cjg41h0nd9dbi5cr1fp9x1n";
|
|
|
|
};
|
|
|
|
|
2021-05-28 09:39:13 +00:00
|
|
|
cargoSha256 = "1jh1h6v4mxx03b4diw9325ga0k3js0czs504lx07hvbx8yai1wkq";
|
2021-04-08 16:26:57 +00:00
|
|
|
|
2021-05-20 23:08:51 +00:00
|
|
|
buildInputs = lib.optional stdenv.isDarwin libiconv;
|
|
|
|
|
2021-04-08 16:26:57 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Allows conveniently modify features of crate";
|
|
|
|
homepage = "https://github.com/Riey/cargo-feature";
|
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ riey ];
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|