nixpkgs/pkgs/development/tools/rust/cargo-feature/default.nix
2021-05-11 12:24:31 +00:00

27 lines
694 B
Nix

{ lib, rustPlatform, fetchFromGitHub, stdenv, libiconv }:
rustPlatform.buildRustPackage rec {
pname = "cargo-feature";
version = "0.5.2";
src = fetchFromGitHub {
owner = "Riey";
repo = pname;
rev = "v${version}";
sha256 = "0n5kzh756ghfs3cydlcn9mfvpgwy1cjg41h0nd9dbi5cr1fp9x1n";
};
cargoSha256 = "1jh1h6v4mxx03b4diw9325ga0k3js0czs504lx07hvbx8yai1wkq";
buildInputs = lib.optional stdenv.isDarwin libiconv;
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 ];
};
}