diff options
Diffstat (limited to 'nixpkgs/pkgs/applications/editors/emacs/generic.nix')
-rw-r--r-- | nixpkgs/pkgs/applications/editors/emacs/generic.nix | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/nixpkgs/pkgs/applications/editors/emacs/generic.nix b/nixpkgs/pkgs/applications/editors/emacs/generic.nix index b6d556b445a0..82a1d6af8329 100644 --- a/nixpkgs/pkgs/applications/editors/emacs/generic.nix +++ b/nixpkgs/pkgs/applications/editors/emacs/generic.nix @@ -25,6 +25,8 @@ , srcRepo ? false, autoreconfHook ? null, texinfo ? null , siteStart ? ./site-start.el , nativeComp ? false +, withAthena ? false +, withToolkitScrollBars ? true , withPgtk ? false , withXinput2 ? false , withImageMagick ? lib.versionOlder version "27" && (withX || withNS) @@ -32,6 +34,7 @@ if withGTK2 then "gtk2" else if withGTK3 then "gtk3" else if withMotif then "motif" + else if withAthena then "athena" else "lucid") }: @@ -50,7 +53,8 @@ let emacs = stdenv.mkDerivation (lib.optionalAttrs nativeComp { NATIVE_FULL_AOT = "1"; LIBRARY_PATH = "${lib.getLib stdenv.cc.libc}/lib"; } // { - inherit pname version; + pname = pname + lib.optionalString ( !withX && !withNS && !withGTK2 && !withGTK3 ) "-nox"; + inherit version; patches = patches fetchpatch; @@ -154,6 +158,7 @@ let emacs = stdenv.mkDerivation (lib.optionalAttrs nativeComp { ++ lib.optional withImageMagick "--with-imagemagick" ++ lib.optional withPgtk "--with-pgtk" ++ lib.optional withXinput2 "--with-xinput2" + ++ lib.optional (!withToolkitScrollBars) "--without-toolkit-scroll-bars" ; installTargets = [ "tags" "install" ]; |