about summary refs log tree commit diff
path: root/pkgs/servers/trezord/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/servers/trezord/default.nix')
-rw-r--r--pkgs/servers/trezord/default.nix5
1 files changed, 4 insertions, 1 deletions
diff --git a/pkgs/servers/trezord/default.nix b/pkgs/servers/trezord/default.nix
index cc0fb0d742175..d0c674c1512a8 100644
--- a/pkgs/servers/trezord/default.nix
+++ b/pkgs/servers/trezord/default.nix
@@ -1,7 +1,9 @@
 { lib
+, stdenv
 , buildGoModule
 , fetchFromGitHub
 , trezor-udev-rules
+, AppKit
 }:
 
 buildGoModule rec {
@@ -17,7 +19,8 @@ buildGoModule rec {
 
   vendorSha256 = "0wb959xzyvr5zzjvkfqc422frmf97q5nr460f02wwx0pj6ch0y61";
 
-  propagatedBuildInputs = [ trezor-udev-rules ];
+  propagatedBuildInputs = lib.optionals stdenv.isLinux [ trezor-udev-rules ]
+                       ++ lib.optionals stdenv.isDarwin [ AppKit ];
 
   meta = with lib; {
     description = "Trezor Communication Daemon aka Trezor Bridge";