depot/third_party/nixpkgs/pkgs/development/tools/rust/cargo-feature/default.nix
Default email ec92d4d331 Project import generated by Copybara.
GitOrigin-RevId: 540dccb2aeaffa9dc69bfdc41c55abd7ccc6baa3
2021-05-28 11:39:13 +02:00

26 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 ];
};
}