bottom: add missing dependencies when on darwin
This commit is contained in:
parent
e1ce68683f
commit
8f02e3bb29
@ -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=";
|
||||
|
||||
|
@ -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 { };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user