···1{ stdenv, fetchurl, pkgconfig, libtool, zip, libffi, libsigsegv, readline, gmp,
2-gnutls, gnome, cairo, SDL, sqlite }:
0034let # The gnu-smalltalk project has a dependency to the libsigsegv library.
5 # The project ships with sources for this library, but deprecated this option.
···26 buildInputs = [
27 pkgconfig libtool zip libffi libsigsegv-shared readline gmp gnutls gnome.gtk
28 cairo SDL sqlite
29- ];
0003031- configureFlags = [ "--without-emacs" ];
3233 # For some reason the tests fail if executated with nix-build, but pass if
34 # executed within nix-shell --pure.
···1{ stdenv, fetchurl, pkgconfig, libtool, zip, libffi, libsigsegv, readline, gmp,
2+gnutls, gnome, cairo, SDL, sqlite, emacsSupport ? false, emacs ? null }:
3+4+assert emacsSupport -> (emacs != null);
56let # The gnu-smalltalk project has a dependency to the libsigsegv library.
7 # The project ships with sources for this library, but deprecated this option.
···28 buildInputs = [
29 pkgconfig libtool zip libffi libsigsegv-shared readline gmp gnutls gnome.gtk
30 cairo SDL sqlite
31+ ]
32+ ++ stdenv.lib.optional emacsSupport emacs;
33+34+ configureFlags = stdenv.lib.optional (!emacsSupport) "--without-emacs";
3536+ installFlags = stdenv.lib.optional emacsSupport "lispdir=$(out)/share/emacs/site-lisp";
3738 # For some reason the tests fail if executated with nix-build, but pass if
39 # executed within nix-shell --pure.