about summary refs log tree commit diff
path: root/pkgs/tools/misc/macchina
diff options
context:
space:
mode:
authorStéphan Kochen <git@stephank.nl>2021-05-17 22:10:21 +0200
committerJonathan Ringer <jonringer@users.noreply.github.com>2021-05-17 14:03:08 -0700
commit6207e75a0041d9cef890b9d710fc49e462e64a1d (patch)
tree6b713d278f9d5920b53731c55356ce5419ac2ede /pkgs/tools/misc/macchina
parent29fe52f3bd63018527cd0bb1aa659346375dbf7a (diff)
macchina: fix darwin build
Diffstat (limited to 'pkgs/tools/misc/macchina')
-rw-r--r--pkgs/tools/misc/macchina/default.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/tools/misc/macchina/default.nix b/pkgs/tools/misc/macchina/default.nix
index 42a83f91df6d6..8d40200a9a709 100644
--- a/pkgs/tools/misc/macchina/default.nix
+++ b/pkgs/tools/misc/macchina/default.nix
@@ -1,4 +1,5 @@
-{ lib, rustPlatform, fetchFromGitHub, installShellFiles }:
+{ lib, stdenv, rustPlatform, fetchFromGitHub, installShellFiles
+, libiconv, Foundation }:
 
 rustPlatform.buildRustPackage rec {
   pname = "macchina";
@@ -14,6 +15,7 @@ rustPlatform.buildRustPackage rec {
   cargoSha256 = "sha256-OfOh0YXeLT/kBuR9SOV7pHa8Z4b6+JvtVwqqwd1hCJY=";
 
   nativeBuildInputs = [ installShellFiles ];
+  buildInputs = lib.optionals stdenv.isDarwin [ libiconv Foundation ];
 
   postInstall = ''
     installShellCompletion target/completions/*.{bash,fish}