Merge pull request #311359 from RaghavSood/cargo-about/fix-build

cargo-about: add darwin dependency

authored by Weijia Wang and committed by GitHub 31b176d2 60f1c39a

+23 -12
+23 -12
pkgs/development/tools/rust/cargo-about/default.nix
··· 1 - { lib 2 - , rustPlatform 3 - , fetchFromGitHub 4 - , pkg-config 5 - , zstd 6 - , stdenv 7 - , darwin 8 }: 9 10 rustPlatform.buildRustPackage rec { ··· 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; ··· 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 matthiasbeyer ]; 39 mainProgram = "cargo-about"; 40 }; 41 }
··· 1 + { 2 + lib, 3 + rustPlatform, 4 + fetchFromGitHub, 5 + pkg-config, 6 + zstd, 7 + stdenv, 8 + darwin, 9 }: 10 11 rustPlatform.buildRustPackage rec { ··· 23 24 nativeBuildInputs = [ pkg-config ]; 25 26 + buildInputs = 27 + [ zstd ] 28 + ++ lib.optionals stdenv.isDarwin [ 29 + darwin.apple_sdk.frameworks.Security 30 + darwin.apple_sdk.frameworks.SystemConfiguration 31 + ]; 32 33 env = { 34 ZSTD_SYS_USE_PKG_CONFIG = true; ··· 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 }; 52 }