summary refs log tree commit diff
diff options
context:
space:
mode:
authorNikolay Mokrinsky <me@mokrinsky.ru>2023-05-21 06:26:30 +0400
committerNikolay Mokrinsky <me@mokrinsky.ru>2023-05-21 18:31:05 +0400
commit6a18e4b8a4ecaeea106e4b50e76f767dfab94998 (patch)
treee978b92633f48da59194fd5f36fd7bf7d127fe20
parenta0d5bf2564caff5d0e60a1bbc9ac52dd1939fe9f (diff)
downloadnixpkgs-6a18e4b8a4ecaeea106e4b50e76f767dfab94998.tar
nixpkgs-6a18e4b8a4ecaeea106e4b50e76f767dfab94998.tar.gz
nixpkgs-6a18e4b8a4ecaeea106e4b50e76f767dfab94998.tar.bz2
nixpkgs-6a18e4b8a4ecaeea106e4b50e76f767dfab94998.tar.lz
nixpkgs-6a18e4b8a4ecaeea106e4b50e76f767dfab94998.tar.xz
nixpkgs-6a18e4b8a4ecaeea106e4b50e76f767dfab94998.tar.zst
nixpkgs-6a18e4b8a4ecaeea106e4b50e76f767dfab94998.zip
wezterm: fix darwin build
-rw-r--r--pkgs/applications/terminal-emulators/wezterm/default.nix4
-rw-r--r--pkgs/top-level/all-packages.nix2
2 files changed, 5 insertions, 1 deletions
diff --git a/pkgs/applications/terminal-emulators/wezterm/default.nix b/pkgs/applications/terminal-emulators/wezterm/default.nix
index 26c35d50d21..9743197d832 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 9d6033cb97e..f703f1f49f7 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 { };