diff --git a/pkgs/applications/terminal-emulators/wezterm/default.nix b/pkgs/applications/terminal-emulators/wezterm/default.nix index 26c35d50d214..9743197d8323 100644 --- a/pkgs/applications/terminal-emulators/wezterm/default.nix +++ b/pkgs/applications/terminal-emulators/wezterm/default.nix @@ -22,6 +22,7 @@ , CoreGraphics , Cocoa , Foundation +, System , libiconv , UserNotifications , nixosTests @@ -81,11 +82,14 @@ rustPlatform.buildRustPackage rec { CoreGraphics Foundation libiconv + System UserNotifications ]; buildFeatures = [ "distro-defaults" ]; + env.NIX_LDFLAGS = lib.optionalString stdenv.isDarwin "-framework System"; + postInstall = '' mkdir -p $out/nix-support echo "${passthru.terminfo}" >> $out/nix-support/propagated-user-env-packages diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 9d6033cb97e7..f703f1f49f7c 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -2708,7 +2708,7 @@ with pkgs; wayst = callPackage ../applications/terminal-emulators/wayst { }; wezterm = darwin.apple_sdk_11_0.callPackage ../applications/terminal-emulators/wezterm { - inherit (darwin.apple_sdk_11_0.frameworks) Cocoa CoreGraphics Foundation UserNotifications; + inherit (darwin.apple_sdk_11_0.frameworks) Cocoa CoreGraphics Foundation UserNotifications System; }; x3270 = callPackage ../applications/terminal-emulators/x3270 { };