@@ -0,0 +1,27 @@
1+{ lib, stdenv, fetchFromGitHub, rustPlatform, pkg-config, openssl, Security }:
2+
3+rustPlatform.buildRustPackage rec {
4+ pname = "cargo-whatfeatures";
5+ version = "0.9.6";
6+
7+ src = fetchFromGitHub {
8+ owner = "museun";
9+ repo = pname;
10+ rev = "v${version}";
11+ sha256 = "0vki37pxngg15za9c1z61dc6sqk0j59s0qhcf9hplnym4ib5kqx1";
12+ };
13+
14+ cargoSha256 = "sha256-nNV7UXjKZNFmTqW4H0qsNuBW9XOP2V9nfotewtI9mYE";
15+
16+ nativeBuildInputs = [ pkg-config ];
17+
18+ buildInputs = [ openssl ]
19+ ++ lib.optionals stdenv.isDarwin [ Security ];
20+
21+ meta = with lib; {
22+ description = "A simple cargo plugin to get a list of features for a specific crate";
23+ homepage = "https://github.com/museun/cargo-whatfeatures";
24+ license = with licenses; [ mit asl20 ];
25+ maintainers = with maintainers; [ ivan-babrou ];
26+ };
27+}