Skip to content

Commit

Permalink
GUI support
Browse files Browse the repository at this point in the history
  • Loading branch information
Silex committed Jun 23, 2021
1 parent 6ed57b1 commit 8dbe69c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
17 changes: 8 additions & 9 deletions emacs.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,17 @@
, gnutls
, jansson
, gmp
, xlibsWrapper, libXaw, libXpm
, Xaw3d, libXcursor, pkg-config, libXft, dbus, libpng, libjpeg, giflib, giflib_4_1
, libtiff, librsvg, imagemagick, libselinux
, autoconf ? null
, automake ? null
, texinfo ? null
, withAutoReconf ? false
, patches ? [ ]
, srcRepo ? false
, needCrtDir ? false
, needLibGif4 ? false
}:

let
Expand All @@ -42,7 +46,8 @@ stdenv.mkDerivation rec {
++ lib.optionals srcRepo [ autoconf automake texinfo ];

buildInputs =
[ ncurses libxml2 gnutls gettext jansson gmp ];
[ ncurses libxml2 gnutls gettext jansson gmp xlibsWrapper libXaw Xaw3d libXpm libpng libjpeg libtiff libXft librsvg imagemagick ]
++ (if needLibGif4 then [ giflib_4_1 ] else [ giflib ]);

hardeningDisable = [ "format" ];

Expand All @@ -51,14 +56,8 @@ stdenv.mkDerivation rec {
configureFlags = [
"--disable-build-details" # for a (more) reproducible build
"--with-modules"
"--with-x=no"
"--with-ns=no"
"--with-xpm=no"
"--with-jpeg=no"
"--with-png=no"
"--with-gif=no"
"--with-tiff=no"
] ++ lib.optionals needCrtDir [ "--with-crt-dir=${stdenv.glibc}/lib" ];
]
++ lib.optionals needCrtDir [ "--with-crt-dir=${stdenv.glibc}/lib" ];

postPatch = lib.concatStringsSep "\n" [
(lib.optionalString srcRepo ''
Expand Down
1 change: 1 addition & 0 deletions overlay.nix
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ let
./patches/fpending-23.4.patch
];
needCrtDir = true;
needLibGif4 = true;
};

emacs-24-1 = with super; callPackage ./emacs.nix {
Expand Down

0 comments on commit 8dbe69c

Please sign in to comment.