Files

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

46 lines
966 B
Nix
Raw Permalink Normal View History

2025-10-09 14:15:47 +02:00
{
lib,
rustPlatform,
fetchFromGitHub,
pkg-config,
zstd,
}:
rustPlatform.buildRustPackage rec {
pname = "cargo-about";
version = "0.8.2";
src = fetchFromGitHub {
owner = "EmbarkStudios";
repo = "cargo-about";
tag = version;
sha256 = "sha256-cNKZpDlfqEXeOE5lmu79AcKOawkPpk4PQCsBzNtIEbs=";
};
cargoHash = "sha256-NnocSs6UkuF/mCM3lIdFk+r51Iz2bHuYzMT/gEbT/nk=";
nativeBuildInputs = [ pkg-config ];
buildInputs = [ zstd ];
env = {
ZSTD_SYS_USE_PKG_CONFIG = true;
};
meta = {
description = "Cargo plugin to generate list of all licenses for a crate";
homepage = "https://github.com/EmbarkStudios/cargo-about";
changelog = "https://github.com/EmbarkStudios/cargo-about/blob/${version}/CHANGELOG.md";
license = with lib.licenses; [
mit # or
asl20
];
maintainers = with lib.maintainers; [
evanjs
figsoda
matthiasbeyer
];
mainProgram = "cargo-about";
};
}