Skip to content

Commit d86fc0d

Browse files
committed
emacs: darwin: use architecture-native SDK
Signed-off-by: Andrew Pan <[email protected]>
1 parent c1a1641 commit d86fc0d

File tree

3 files changed

+6
-16
lines changed

3 files changed

+6
-16
lines changed

pkgs/applications/editors/emacs/default.nix

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,25 +4,14 @@ lib.makeScope pkgs.newScope (self:
44
let
55
gconf = pkgs.gnome2.GConf;
66
inherit (self) callPackage;
7-
stdenv = if pkgs.stdenv.isDarwin
8-
then pkgs.darwin.apple_sdk_11_0.stdenv
9-
else pkgs.stdenv;
107
inheritedArgs = {
118
inherit gconf;
12-
inherit stdenv;
139

1410
inherit (pkgs.darwin) sigtool;
15-
inherit (pkgs.darwin.apple_sdk_11_0) llvmPackages_14;
16-
inherit (pkgs.darwin.apple_sdk_11_0.frameworks)
11+
inherit (pkgs.darwin.apple_sdk.frameworks)
1712
Accelerate AppKit Carbon Cocoa GSS ImageCaptureCore ImageIO IOKit OSAKit
18-
Quartz QuartzCore UniformTypeIdentifiers WebKit;
19-
gnutls =
20-
if pkgs.stdenv.isDarwin
21-
then pkgs.gnutls.override {
22-
inherit stdenv;
23-
inherit (pkgs.darwin.apple_sdk_11_0.frameworks) Security;
24-
}
25-
else pkgs.gnutls;
13+
Quartz QuartzCore WebKit;
14+
inherit (pkgs.darwin.apple_sdk_11_0.frameworks) UniformTypeIdentifiers;
2615
};
2716
in {
2817
sources = import ./sources.nix {

pkgs/applications/editors/emacs/make-emacs.nix

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,12 +296,13 @@ mkDerivation (finalAttrs: {
296296
OSAKit
297297
Quartz
298298
QuartzCore
299-
UniformTypeIdentifiers
300299
WebKit
301300
# TODO are these optional?
302301
GSS
303302
ImageCaptureCore
304303
ImageIO
304+
] ++ lib.optionals (variant == "macport" && stdenv.hostPlatform.isAarch64) [
305+
UniformTypeIdentifiers
305306
];
306307

307308
hardeningDisable = [ "format" ];

pkgs/top-level/all-packages.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30613,7 +30613,7 @@ with pkgs;
3061330613

3061430614
em = callPackage ../applications/editors/em { };
3061530615

30616-
inherit (recurseIntoAttrs (darwin.apple_sdk_11_0.callPackage ../applications/editors/emacs { }))
30616+
inherit (recurseIntoAttrs (callPackage ../applications/editors/emacs { }))
3061730617
emacs28
3061830618
emacs28-gtk2
3061930619
emacs28-gtk3

0 commit comments

Comments
 (0)