emacs: enable strictDeps

This also fixes build of Emacs 30 withNS on darwin because now Emacs
checks the correct compiler (clang instead of gcc) for Objective-C.
See https://github.com/NixOS/nixpkgs/pull/529324 for more info.
This commit is contained in:
Lin Jian
2026-06-08 10:27:27 +08:00
parent 37c86ba2f7
commit 0a8b91bf6a
@@ -238,6 +238,8 @@ stdenv.mkDerivation (finalAttrs: {
""
];
strictDeps = true;
nativeBuildInputs = [
makeWrapper
pkg-config
@@ -246,7 +248,8 @@ stdenv.mkDerivation (finalAttrs: {
++ lib.optionals srcRepo [
autoreconfHook
]
++ lib.optionals (withPgtk || withX && (withGTK3 || withXwidgets)) [ wrapGAppsHook3 ];
++ lib.optionals (withPgtk || withX && (withGTK3 || withXwidgets)) [ wrapGAppsHook3 ]
++ lib.optionals stdenv.hostPlatform.isDarwin [ sigtool ];
buildInputs = [
gnutls
@@ -338,9 +341,6 @@ stdenv.mkDerivation (finalAttrs: {
++ lib.optionals withWebkitgtk [
webkitgtk_4_1
]
++ lib.optionals stdenv.hostPlatform.isDarwin [
sigtool
]
++ lib.optionals withNS [
librsvg
]