nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at netboot-syslinux-multiplatform 40 lines 980 B view raw
1{ lib 2, rustPlatform 3, fetchFromGitHub 4, pkg-config 5, zstd 6, stdenv 7, darwin 8}: 9 10rustPlatform.buildRustPackage rec { 11 pname = "cargo-about"; 12 version = "0.5.6"; 13 14 src = fetchFromGitHub { 15 owner = "EmbarkStudios"; 16 repo = "cargo-about"; 17 rev = version; 18 sha256 = "sha256-nlumcRcL5HwRJTNqLJ9+UkSg88HuE96Rg8Tgc+ZcK2M="; 19 }; 20 21 cargoSha256 = "sha256-Fa1DGXzHDR3EAZyFg0g2aKFynQlC/LL+Tg5LKpOUzmM="; 22 23 nativeBuildInputs = [ pkg-config ]; 24 25 buildInputs = [ zstd ] ++ lib.optionals stdenv.isDarwin [ 26 darwin.apple_sdk.frameworks.Security 27 ]; 28 29 env = { 30 ZSTD_SYS_USE_PKG_CONFIG = true; 31 }; 32 33 meta = with lib; { 34 description = "Cargo plugin to generate list of all licenses for a crate"; 35 homepage = "https://github.com/EmbarkStudios/cargo-about"; 36 changelog = "https://github.com/EmbarkStudios/cargo-about/blob/${version}/CHANGELOG.md"; 37 license = with licenses; [ mit /* or */ asl20 ]; 38 maintainers = with maintainers; [ evanjs figsoda ]; 39 }; 40}