diff --git a/pkgs/tools/system/bottom/default.nix b/pkgs/tools/system/bottom/default.nix index 1c0972970419..ab388a4ee5c5 100644 --- a/pkgs/tools/system/bottom/default.nix +++ b/pkgs/tools/system/bottom/default.nix @@ -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="; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 20a74482730d..08a00ac40948 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -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 { };