2024-05-15 15:35:15 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
rustPlatform,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pkg-config,
|
|
|
|
zstd,
|
|
|
|
stdenv,
|
|
|
|
darwin,
|
2022-10-21 18:38:19 +00:00
|
|
|
}:
|
2021-12-06 16:07:01 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "cargo-about";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "0.6.4";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "EmbarkStudios";
|
|
|
|
repo = "cargo-about";
|
2020-11-03 02:18:15 +00:00
|
|
|
rev = version;
|
2024-09-19 14:19:46 +00:00
|
|
|
sha256 = "sha256-KFTG4FmmEji+0yNTwrunqOQuaU+qUcu1Vg7ZqoeUy4c=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
cargoHash = "sha256-bCw30ooQdSMRD3oM9BeUt9sJe5v+ketO73FjEypNy9s=";
|
2021-12-19 01:06:50 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
buildInputs =
|
|
|
|
[ zstd ]
|
2024-09-26 11:04:55 +00:00
|
|
|
++ lib.optionals stdenv.hostPlatform.isDarwin [
|
2024-05-15 15:35:15 +00:00
|
|
|
darwin.apple_sdk.frameworks.Security
|
|
|
|
darwin.apple_sdk.frameworks.SystemConfiguration
|
|
|
|
];
|
2021-05-20 23:08:51 +00:00
|
|
|
|
2023-04-29 16:46:19 +00:00
|
|
|
env = {
|
|
|
|
ZSTD_SYS_USE_PKG_CONFIG = true;
|
|
|
|
};
|
2023-02-02 18:25:31 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Cargo plugin to generate list of all licenses for a crate";
|
|
|
|
homepage = "https://github.com/EmbarkStudios/cargo-about";
|
2021-12-06 16:07:01 +00:00
|
|
|
changelog = "https://github.com/EmbarkStudios/cargo-about/blob/${version}/CHANGELOG.md";
|
2024-05-15 15:35:15 +00:00
|
|
|
license = with licenses; [
|
|
|
|
mit # or
|
|
|
|
asl20
|
|
|
|
];
|
|
|
|
maintainers = with maintainers; [
|
|
|
|
evanjs
|
|
|
|
figsoda
|
|
|
|
matthiasbeyer
|
|
|
|
];
|
2023-10-09 19:29:22 +00:00
|
|
|
mainProgram = "cargo-about";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|