evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / by-name / ca / cargo-about / package.nix
blob3da8e4beea34042d7f6df3b0a224639a17563525
2   lib,
3   rustPlatform,
4   fetchFromGitHub,
5   pkg-config,
6   zstd,
7   stdenv,
8   darwin,
9 }:
11 rustPlatform.buildRustPackage rec {
12   pname = "cargo-about";
13   version = "0.6.4";
15   src = fetchFromGitHub {
16     owner = "EmbarkStudios";
17     repo = "cargo-about";
18     rev = version;
19     sha256 = "sha256-KFTG4FmmEji+0yNTwrunqOQuaU+qUcu1Vg7ZqoeUy4c=";
20   };
22   cargoHash = "sha256-bCw30ooQdSMRD3oM9BeUt9sJe5v+ketO73FjEypNy9s=";
24   nativeBuildInputs = [ pkg-config ];
26   buildInputs =
27     [ zstd ]
28     ++ lib.optionals stdenv.hostPlatform.isDarwin [
29       darwin.apple_sdk.frameworks.Security
30       darwin.apple_sdk.frameworks.SystemConfiguration
31     ];
33   env = {
34     ZSTD_SYS_USE_PKG_CONFIG = true;
35   };
37   meta = with lib; {
38     description = "Cargo plugin to generate list of all licenses for a crate";
39     homepage = "https://github.com/EmbarkStudios/cargo-about";
40     changelog = "https://github.com/EmbarkStudios/cargo-about/blob/${version}/CHANGELOG.md";
41     license = with licenses; [
42       mit # or
43       asl20
44     ];
45     maintainers = with maintainers; [
46       evanjs
47       figsoda
48       matthiasbeyer
49     ];
50     mainProgram = "cargo-about";
51   };