bottom: add missing dependencies when on darwin

This commit is contained in:
fortuneteller2k 2021-05-11 08:13:19 +08:00 committed by Raphael Megzari
parent e1ce68683f
commit 8f02e3bb29
2 changed files with 19 additions and 3 deletions

View File

@ -1,4 +1,13 @@
{ lib, stdenv, fetchFromGitHub, rustPlatform, darwin, installShellFiles }:
{ lib
, stdenv
, fetchFromGitHub
, rustPlatform
, DiskArbitration
, Foundation
, IOKit
, installShellFiles
, libiconv
}:
rustPlatform.buildRustPackage rec {
pname = "bottom";
@ -17,7 +26,12 @@ rustPlatform.buildRustPackage rec {
nativeBuildInputs = [ installShellFiles ];
buildInputs = lib.optional stdenv.hostPlatform.isDarwin darwin.apple_sdk.frameworks.IOKit;
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [
DiskArbitration
Foundation
IOKit
libiconv
];
cargoSha256 = "sha256-m2UVpsVTEmf6fgE1CFRE6+3097bKnkrMKtY3fAOjS2E=";

View File

@ -31373,7 +31373,9 @@ in
treefmt = callPackage ../development/tools/treefmt { };
bottom = callPackage ../tools/system/bottom {};
bottom = callPackage ../tools/system/bottom {
inherit (darwin.apple_sdk.frameworks) DiskArbitration Foundation IOKit;
};
cagebreak = callPackage ../applications/window-managers/cagebreak/default.nix { };