ripasso-cursive: cosmetic changes (#361736)
[NixPkgs.git] / pkgs / by-name / ca / cargo-about / package.nix
blob539ae8b9876537c2b086e3b71c9d23381cd0f56f
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.5";
15   src = fetchFromGitHub {
16     owner = "EmbarkStudios";
17     repo = "cargo-about";
18     rev = version;
19     sha256 = "sha256-HkhwSL3t++En9+cMnOjNWpBSedbnXFl8DCt9Fva69+s=";
20   };
22   cargoHash = "sha256-GdSgess8u/UG3BSCqDx8okVj5AiTKT3O28jDR+pXwvw=";
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   };