Merge pull request #115407 from prusnak/trezord-darwin

trezord: fix build on darwin

authored by Pavol Rusnak and committed by GitHub 588e7caf 78452c20

+7 -2
+4 -1
pkgs/servers/trezord/default.nix
··· 1 1 { lib 2 + , stdenv 2 3 , buildGoModule 3 4 , fetchFromGitHub 4 5 , trezor-udev-rules 6 + , AppKit 5 7 }: 6 8 7 9 buildGoModule rec { ··· 17 19 18 20 vendorSha256 = "0wb959xzyvr5zzjvkfqc422frmf97q5nr460f02wwx0pj6ch0y61"; 19 21 20 - propagatedBuildInputs = [ trezor-udev-rules ]; 22 + propagatedBuildInputs = lib.optionals stdenv.isLinux [ trezor-udev-rules ] 23 + ++ lib.optionals stdenv.isDarwin [ AppKit ]; 21 24 22 25 meta = with lib; { 23 26 description = "Trezor Communication Daemon aka Trezor Bridge";
+3 -1
pkgs/top-level/all-packages.nix
··· 8560 8560 8561 8561 trezorctl = with python3Packages; toPythonApplication trezor; 8562 8562 8563 - trezord = callPackage ../servers/trezord { }; 8563 + trezord = callPackage ../servers/trezord { 8564 + inherit (darwin.apple_sdk.frameworks) AppKit; 8565 + }; 8564 8566 8565 8567 trezor_agent = with python3Packages; toPythonApplication trezor_agent; 8566 8568