2021-12-06 16:07:01 +00:00
|
|
|
{ lib
|
2020-05-03 17:38:23 +00:00
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
2021-12-06 16:07:01 +00:00
|
|
|
, pkg-config
|
2021-12-19 01:06:50 +00:00
|
|
|
, zstd
|
2021-12-06 16:07:01 +00:00
|
|
|
, stdenv
|
2023-04-12 12:48:02 +00:00
|
|
|
, darwin
|
2020-05-03 17:38:23 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "cargo-deny";
|
2024-01-25 14:12:00 +00:00
|
|
|
version = "0.14.7";
|
2020-05-03 17:38:23 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "EmbarkStudios";
|
2023-08-04 22:07:22 +00:00
|
|
|
repo = "cargo-deny";
|
2020-05-03 17:38:23 +00:00
|
|
|
rev = version;
|
2024-01-25 14:12:00 +00:00
|
|
|
hash = "sha256-Ods0uibPrvrFW9HRHm4k9xhmOmvW8zJfVjMYEX7H0UA=";
|
2020-05-03 17:38:23 +00:00
|
|
|
};
|
|
|
|
|
2024-01-25 14:12:00 +00:00
|
|
|
cargoHash = "sha256-/wHXKzHl00q+8e4A9YFAGqhoCqVwkFhMtWTuzdmZIHc=";
|
2021-02-05 17:12:51 +00:00
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
];
|
2020-05-03 17:38:23 +00:00
|
|
|
|
2023-04-12 12:48:02 +00:00
|
|
|
buildInputs = [
|
|
|
|
zstd
|
|
|
|
] ++ lib.optionals stdenv.isDarwin [
|
|
|
|
darwin.apple_sdk.frameworks.Security
|
2024-01-25 14:12:00 +00:00
|
|
|
darwin.apple_sdk.frameworks.SystemConfiguration
|
2023-04-12 12:48:02 +00:00
|
|
|
];
|
2021-12-06 16:07:01 +00:00
|
|
|
|
2023-04-12 12:48:02 +00:00
|
|
|
env = {
|
|
|
|
ZSTD_SYS_USE_PKG_CONFIG = true;
|
|
|
|
};
|
|
|
|
|
2021-12-19 01:06:50 +00:00
|
|
|
# tests require internet access
|
|
|
|
doCheck = false;
|
|
|
|
|
2020-05-03 17:38:23 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Cargo plugin to generate list of all licenses for a crate";
|
|
|
|
homepage = "https://github.com/EmbarkStudios/cargo-deny";
|
2021-12-06 16:07:01 +00:00
|
|
|
changelog = "https://github.com/EmbarkStudios/cargo-deny/blob/${version}/CHANGELOG.md";
|
|
|
|
license = with licenses; [ asl20 /* or */ mit ];
|
2022-02-10 20:34:41 +00:00
|
|
|
maintainers = with maintainers; [ figsoda matthiasbeyer jk ];
|
2020-05-03 17:38:23 +00:00
|
|
|
};
|
|
|
|
}
|