1 { lib, stdenv, fetchFromGitHub, rustPlatform, pkg-config, openssl, Security }:
3 rustPlatform.buildRustPackage rec {
4 pname = "cargo-whatfeatures";
7 src = fetchFromGitHub {
11 sha256 = "sha256-80VbQyOg6jvX98QRcCVN/wwhAm4bO/UfHEIv4gP8IlA=";
14 cargoHash = "sha256-mp9KUJuwSwRuxQAEilYwNZwqe3ipN4JzsaO5Pi3V9xg=";
16 nativeBuildInputs = [ pkg-config ];
18 buildInputs = [ openssl ]
19 ++ lib.optionals stdenv.isDarwin [ Security ];
22 description = "A simple cargo plugin to get a list of features for a specific crate";
23 mainProgram = "cargo-whatfeatures";
24 homepage = "https://github.com/museun/cargo-whatfeatures";
25 license = with licenses; [ mit asl20 ];
26 maintainers = with maintainers; [ ivan-babrou matthiasbeyer ];