Merge pull request #229157 from figsoda/cargo-info
cargo-info: init at 0.7.3
This commit is contained in:
commit
5df4516c36
40
pkgs/development/tools/rust/cargo-info/default.nix
Normal file
40
pkgs/development/tools/rust/cargo-info/default.nix
Normal file
@ -0,0 +1,40 @@
|
||||
{ lib
|
||||
, rustPlatform
|
||||
, fetchFromGitLab
|
||||
, pkg-config
|
||||
, openssl
|
||||
, stdenv
|
||||
, darwin
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "cargo-info";
|
||||
version = "0.7.3";
|
||||
|
||||
src = fetchFromGitLab {
|
||||
owner = "imp";
|
||||
repo = "cargo-info";
|
||||
rev = version;
|
||||
hash = "sha256-m8YytirD9JBwssZFO6oQ9TGqjqvu1GxHN3z8WKLiKd4=";
|
||||
};
|
||||
|
||||
cargoHash = "sha256-gI/DGPCVEi4Mg9nYLaPpeqpV7LBbxoLP0ditU6hPS1w=";
|
||||
|
||||
nativeBuildInputs = [
|
||||
pkg-config
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
openssl
|
||||
] ++ lib.optionals stdenv.isDarwin [
|
||||
darwin.apple_sdk.frameworks.Security
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Cargo subcommand to show crates info from crates.io";
|
||||
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 ];
|
||||
};
|
||||
}
|
@ -16213,6 +16213,7 @@ with pkgs;
|
||||
cargo-hf2 = callPackage ../development/tools/rust/cargo-hf2 {
|
||||
inherit (darwin.apple_sdk.frameworks) AppKit;
|
||||
};
|
||||
cargo-info = callPackage ../development/tools/rust/cargo-info { };
|
||||
cargo-inspect = callPackage ../development/tools/rust/cargo-inspect {
|
||||
inherit (darwin.apple_sdk.frameworks) Security;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user