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