depot/third_party/nixpkgs/pkgs/development/tools/rust/cargo-info/default.nix
Default email 7e47f3658e Project import generated by Copybara.
GitOrigin-RevId: 1925c603f17fc89f4c8f6bf6f631a802ad85d784
2024-09-26 11:04:55 +00:00

44 lines
1 KiB
Nix

{ lib
, rustPlatform
, fetchFromGitLab
, pkg-config
, openssl
, stdenv
, darwin
}:
rustPlatform.buildRustPackage rec {
pname = "cargo-info";
version = "0.7.6";
src = fetchFromGitLab {
owner = "imp";
repo = "cargo-info";
rev = version;
hash = "sha256-02Zkp7Vc1M5iZsG4iJL30S73T2HHg3lqrPJ9mW3FOuk=";
};
# upstream uses `#![deny(warnings)]` which breaks our build
RUSTFLAGS = "--cap-lints allow";
cargoHash = "sha256-zp7qklME28HNGomAcQgrEi7W6zQ1QCJc4FjxtnKySUE=";
nativeBuildInputs = [
pkg-config
];
buildInputs = [
openssl
] ++ lib.optionals stdenv.hostPlatform.isDarwin [
darwin.apple_sdk.frameworks.Security
];
meta = with lib; {
description = "Cargo subcommand to show crates info from crates.io";
mainProgram = "cargo-info";
homepage = "https://gitlab.com/imp/cargo-info";
changelog = "https://gitlab.com/imp/cargo-info/-/blob/${src.rev}/CHANGELOG.md";
license = with licenses; [ mit asl20 ];
maintainers = with maintainers; [ figsoda matthiasbeyer ];
};
}