diff --git a/pkgs/applications/editors/emacs/generic.nix b/pkgs/applications/editors/emacs/generic.nix index 94c92539e4ca..f0e97a07194f 100644 --- a/pkgs/applications/editors/emacs/generic.nix +++ b/pkgs/applications/editors/emacs/generic.nix @@ -135,7 +135,8 @@ let emacs = (if withMacport then llvmPackages_6.stdenv else stdenv).mkDerivation ]; nativeBuildInputs = [ pkg-config makeWrapper ] - ++ lib.optionals srcRepo [ autoreconfHook texinfo ] + ++ lib.optionals (srcRepo || withMacport) [ texinfo ] + ++ lib.optionals srcRepo [ autoreconfHook ] ++ lib.optional (withX && (withGTK3 || withXwidgets)) wrapGAppsHook; buildInputs =