2021-12-06 13:39:08 +00:00
|
|
|
{ lib, rustPlatform, fetchFromGitHub, pkg-config, zstd, stdenv }:
|
2021-11-03 02:29:49 +00:00
|
|
|
|
2020-01-21 15:42:06 +00:00
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "cargo-about";
|
2022-04-07 08:51:00 +00:00
|
|
|
version = "0.5.1";
|
2020-01-21 15:42:06 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "EmbarkStudios";
|
|
|
|
repo = "cargo-about";
|
2020-11-01 22:39:49 +00:00
|
|
|
rev = version;
|
2022-04-07 08:51:00 +00:00
|
|
|
sha256 = "sha256-T8Hhody0jMmZb6/xMkSvKCv4STZPbcrf/UB3APspYDM=";
|
2020-01-21 15:42:06 +00:00
|
|
|
};
|
|
|
|
|
2021-12-06 13:39:08 +00:00
|
|
|
# enable pkg-config feature of zstd
|
|
|
|
cargoPatches = [ ./zstd-pkg-config.patch ];
|
|
|
|
|
2022-04-07 08:51:00 +00:00
|
|
|
cargoSha256 = "sha256-x/HzDYNy0FDxJmhjSUUEiyahM7Sw27aC+ULP/Ii0X/8=";
|
2021-12-06 13:39:08 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
|
|
|
|
buildInputs = [ zstd ];
|
2021-05-11 08:05:40 +00:00
|
|
|
|
2020-01-21 15:42:06 +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-11-03 02:29:49 +00:00
|
|
|
changelog = "https://github.com/EmbarkStudios/cargo-about/blob/${version}/CHANGELOG.md";
|
2020-01-21 15:42:06 +00:00
|
|
|
license = with licenses; [ mit /* or */ asl20 ];
|
2021-11-03 02:29:49 +00:00
|
|
|
maintainers = with maintainers; [ evanjs figsoda ];
|
2021-12-06 13:39:08 +00:00
|
|
|
broken = stdenv.isDarwin;
|
2020-01-21 15:42:06 +00:00
|
|
|
};
|
|
|
|
}
|