02cf88bb76
GitOrigin-RevId: c4a0efdd5a728e20791b8d8d2f26f90ac228ee8d
45 lines
1.1 KiB
Nix
45 lines
1.1 KiB
Nix
{ lib
|
|
, rustPlatform
|
|
, fetchFromGitHub
|
|
, pkg-config
|
|
, openssl
|
|
, zstd
|
|
, stdenv
|
|
, curl
|
|
, Security
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "cargo-deny";
|
|
version = "0.12.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "EmbarkStudios";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "sha256-2NfM1Gd+I9+XGuTyKXxoxH63mqR/G4YcvAjMU2Evhb0=";
|
|
};
|
|
|
|
# enable pkg-config feature of zstd
|
|
cargoPatches = [ ./zstd-pkg-config.patch ];
|
|
|
|
cargoSha256 = "sha256-6k35fv0HwHuu2k7V2GBjvdAajLVuXuFzVSpVSFF8y+s=";
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
buildInputs = [ openssl zstd ]
|
|
++ lib.optionals stdenv.isDarwin [ curl Security ];
|
|
|
|
buildNoDefaultFeatures = true;
|
|
|
|
# tests require internet access
|
|
doCheck = false;
|
|
|
|
meta = with lib; {
|
|
description = "Cargo plugin to generate list of all licenses for a crate";
|
|
homepage = "https://github.com/EmbarkStudios/cargo-deny";
|
|
changelog = "https://github.com/EmbarkStudios/cargo-deny/blob/${version}/CHANGELOG.md";
|
|
license = with licenses; [ asl20 /* or */ mit ];
|
|
maintainers = with maintainers; [ figsoda matthiasbeyer jk ];
|
|
};
|
|
}
|