ripasso-cursive: cosmetic changes (#361736)
[NixPkgs.git] / pkgs / by-name / ca / cargo-unused-features / package.nix
blobcf1fd1deb398119a52f749d83abdf605f2a679a1
1 { lib
2 , rustPlatform
3 , fetchCrate
4 , curl
5 , pkg-config
6 , libgit2
7 , openssl
8 , stdenv
9 , darwin
12 rustPlatform.buildRustPackage rec {
13   pname = "cargo-unused-features";
14   version = "0.2.0";
16   src = fetchCrate {
17     inherit pname version;
18     hash = "sha256-gdwIbbQDw/DgBV9zY2Rk/oWjPv1SS/+oFnocsMo2Axo=";
19   };
21   cargoHash = "sha256-K9I7Eg43BS2SKq5zZ3eZrMkmuHAx09OX240sH0eGs+k=";
23   nativeBuildInputs = [
24     curl.dev
25     pkg-config
26   ];
28   buildInputs = [
29     curl
30     libgit2
31     openssl
32   ] ++ lib.optionals stdenv.hostPlatform.isDarwin [
33     darwin.apple_sdk.frameworks.CoreFoundation
34     darwin.apple_sdk.frameworks.Security
35   ];
37   env = {
38     LIBGIT2_NO_VENDOR = 1;
39   };
41   meta = with lib; {
42     description = "Tool to find potential unused enabled feature flags and prune them";
43     homepage = "https://github.com/timonpost/cargo-unused-features";
44     license = licenses.mit;
45     maintainers = with maintainers; [ figsoda matthiasbeyer ];
46     mainProgram = "unused-features";
47   };