lol
at 23.11-beta 27 lines 818 B view raw
1{ lib, stdenv, fetchFromGitHub, rustPlatform, pkg-config, openssl, Security }: 2 3rustPlatform.buildRustPackage rec { 4 pname = "cargo-whatfeatures"; 5 version = "0.9.9"; 6 7 src = fetchFromGitHub { 8 owner = "museun"; 9 repo = pname; 10 rev = "v${version}"; 11 sha256 = "sha256-YENzXU7sud3gsh32zh1EwGEgfvnIIa4FzHMwGKuI3JA="; 12 }; 13 14 cargoSha256 = "sha256-mUBqygJBisZl3wJh/pXVLLq7P6EWz0Pd2j+iu2pz7Os="; 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 matthiasbeyer ]; 26 }; 27}