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";
|
2021-12-19 01:06:50 +00:00
|
|
|
version = "0.6.0";
|
2021-04-08 16:26:57 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Riey";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-12-19 01:06:50 +00:00
|
|
|
sha256 = "sha256-9TP67YtvRtgLtsKACL5xjXq5kZtYpTWsTqQsbOKPwtY=";
|
2021-04-08 16:26:57 +00:00
|
|
|
};
|
|
|
|
|
2021-12-19 01:06:50 +00:00
|
|
|
cargoSha256 = "sha256-MkLsQebQdqfUuARIdQZg47kMPudstJUgRQgUuovoLes=";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|