2021-02-16 17:04:54 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, rustPlatform, pkg-config, openssl, Security }:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "cargo-whatfeatures";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "0.9.12";
|
2021-02-16 17:04:54 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "museun";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2024-05-15 15:35:15 +00:00
|
|
|
sha256 = "sha256-62eEHxX+Gsz+Bif1ev0nTRituRkfqlGYZfa9cFkO26M=";
|
2021-02-16 17:04:54 +00:00
|
|
|
};
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
cargoHash = "sha256-bk/mbQu4lzhA9ct7cws70MYuj8oNEBgC+0EjHlaN1lc=";
|
2021-02-16 17:04:54 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
|
|
|
|
buildInputs = [ openssl ]
|
|
|
|
++ lib.optionals stdenv.isDarwin [ Security ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A simple cargo plugin to get a list of features for a specific crate";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "cargo-whatfeatures";
|
2021-02-16 17:04:54 +00:00
|
|
|
homepage = "https://github.com/museun/cargo-whatfeatures";
|
|
|
|
license = with licenses; [ mit asl20 ];
|
2023-08-22 20:05:09 +00:00
|
|
|
maintainers = with maintainers; [ ivan-babrou matthiasbeyer ];
|
2021-02-16 17:04:54 +00:00
|
|
|
};
|
|
|
|
}
|