nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 rustPlatform,
4 fetchFromGitHub,
5 pkg-config,
6 zstd,
7}:
8
9rustPlatform.buildRustPackage rec {
10 pname = "cargo-about";
11 version = "0.8.4";
12
13 src = fetchFromGitHub {
14 owner = "EmbarkStudios";
15 repo = "cargo-about";
16 tag = version;
17 sha256 = "sha256-QbmZIbn/xPZUTXNpUjGuWTjoh8RpsMRuVIfJRO9M3xM=";
18 };
19
20 cargoHash = "sha256-oO5Kp5A2v1w6EUwgcHhyagZDIK7a/2d9uTiCoXHuHhY=";
21
22 nativeBuildInputs = [ pkg-config ];
23
24 buildInputs = [ zstd ];
25
26 env = {
27 ZSTD_SYS_USE_PKG_CONFIG = true;
28 };
29
30 meta = {
31 description = "Cargo plugin to generate list of all licenses for a crate";
32 homepage = "https://github.com/EmbarkStudios/cargo-about";
33 changelog = "https://github.com/EmbarkStudios/cargo-about/blob/${version}/CHANGELOG.md";
34 license = with lib.licenses; [
35 mit # or
36 asl20
37 ];
38 maintainers = with lib.maintainers; [
39 evanjs
40 matthiasbeyer
41 ];
42 mainProgram = "cargo-about";
43 };
44}