nixpkgs/pkgs/development/tools/rust/cargo-feature/default.nix

27 lines
692 B
Nix
Raw Normal View History

2021-05-11 08:17:50 +00:00
{ lib, rustPlatform, fetchFromGitHub, stdenv, libiconv }:
2021-04-08 09:32:24 +00:00
rustPlatform.buildRustPackage rec {
pname = "cargo-feature";
2021-12-11 15:29:11 +00:00
version = "0.6.0";
2021-04-08 09:32:24 +00:00
src = fetchFromGitHub {
owner = "Riey";
repo = pname;
rev = "v${version}";
2021-12-11 15:29:11 +00:00
sha256 = "sha256-9TP67YtvRtgLtsKACL5xjXq5kZtYpTWsTqQsbOKPwtY=";
2021-04-08 09:32:24 +00:00
};
2021-12-11 15:29:11 +00:00
cargoSha256 = "sha256-MkLsQebQdqfUuARIdQZg47kMPudstJUgRQgUuovoLes=";
2021-04-08 09:32:24 +00:00
2021-05-11 08:17:50 +00:00
buildInputs = lib.optional stdenv.isDarwin libiconv;
2021-04-08 09:32:24 +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 ];
};
}