summary refs log tree commit diff
path: root/pkgs/applications/editors/emacs
diff options
context:
space:
mode:
authorandreoss <andreoss@sdf.org>2022-01-30 12:11:02 -0500
committerandreoss <andreoss@sdf.org>2022-01-30 12:12:21 -0500
commite0620fbefe31382a9fddb04543ec8061c1786bf5 (patch)
treea7b37de616981d4344e41708d9d5a995c2755dd4 /pkgs/applications/editors/emacs
parentb0c0e0d7eb099a61479b2ca6b390d3b0809a5519 (diff)
downloadnixpkgs-e0620fbefe31382a9fddb04543ec8061c1786bf5.tar
nixpkgs-e0620fbefe31382a9fddb04543ec8061c1786bf5.tar.gz
nixpkgs-e0620fbefe31382a9fddb04543ec8061c1786bf5.tar.bz2
nixpkgs-e0620fbefe31382a9fddb04543ec8061c1786bf5.tar.lz
nixpkgs-e0620fbefe31382a9fddb04543ec8061c1786bf5.tar.xz
nixpkgs-e0620fbefe31382a9fddb04543ec8061c1786bf5.tar.zst
nixpkgs-e0620fbefe31382a9fddb04543ec8061c1786bf5.zip
emacs: Add withToolkitScrollBars argument
Diffstat (limited to 'pkgs/applications/editors/emacs')
-rw-r--r--pkgs/applications/editors/emacs/generic.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/applications/editors/emacs/generic.nix b/pkgs/applications/editors/emacs/generic.nix
index b6d556b445a..946dba0af8f 100644
--- a/pkgs/applications/editors/emacs/generic.nix
+++ b/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")
 }:
 
@@ -154,6 +157,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" ];