Skip to content

Commit

Permalink
emacs: fix native compilaton on Darwin
Browse files Browse the repository at this point in the history
  • Loading branch information
reckenrode authored and jian-lin committed Dec 4, 2024
1 parent 944c1ac commit b904748
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkgs/applications/editors/emacs/make-emacs.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
, Xaw3d
, acl
, alsa-lib
, apple-sdk
, autoreconfHook
, cairo
, dbus
Expand Down Expand Up @@ -163,6 +164,9 @@ mkDerivation (finalAttrs: {
"${lib.getBin stdenv.cc.cc}/bin"
"${lib.getBin stdenv.cc.bintools}/bin"
"${lib.getBin stdenv.cc.bintools.bintools}/bin"
] ++ lib.optionals stdenv.hostPlatform.isDarwin [
# The linker needs to know where to find libSystem on Darwin.
"${apple-sdk.sdkroot}/usr/lib"
])));
})
];
Expand Down

0 comments on commit b904748

Please sign in to comment.