git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #113144 from bobrik/ivan/cargo-whatfeatures

cargo-whatfeatures: init at 0.9.6

commitc36bcb913047ca48c6c8d1a5fb65d91327544b33 authorMaximilian Bosch <maximilian@mbosch.me> dateMon 15 Feb 2021, 10:35 (6 years ago) parent2ad60039a858b6
2 files changed+31
pkgs/development/tools/rust/cargo-whatfeatures/default.nix+27 pkgs/top-level/all-packages.nix+4
pkgs/development/tools/rust/cargo-whatfeatures/default.nixnew file+27
@@ -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+}
pkgs/top-level/all-packages.nix+4
@@ -10856,6 +10856,10 @@ in
1085610856 inherit (darwin.apple_sdk.frameworks) Security;
1085710857 };
1085810858
10859+ cargo-whatfeatures = callPackage ../development/tools/rust/cargo-whatfeatures {
10860+ inherit (darwin.apple_sdk.frameworks) Security;
10861+ };
10862+
1085910863 crate2nix = callPackage ../development/tools/rust/crate2nix { };
1086010864
1086110865 convco = callPackage ../development/tools/convco {