gnu-smalltalk: optional emacs support

This commit is contained in:
Joachim Fasting 2015-04-01 13:51:56 +02:00
parent c1c64f70c6
commit c958486eea
2 changed files with 11 additions and 4 deletions

View file

@ -1,5 +1,7 @@
{ stdenv, fetchurl, pkgconfig, libtool, zip, libffi, libsigsegv, readline, gmp,
gnutls, gnome, cairo, SDL, sqlite }:
gnutls, gnome, cairo, SDL, sqlite, emacsSupport ? false, emacs ? null }:
assert emacsSupport -> (emacs != null);
let # The gnu-smalltalk project has a dependency to the libsigsegv library.
# The project ships with sources for this library, but deprecated this option.
@ -26,9 +28,12 @@ in stdenv.mkDerivation rec {
buildInputs = [
pkgconfig libtool zip libffi libsigsegv-shared readline gmp gnutls gnome.gtk
cairo SDL sqlite
];
]
++ stdenv.lib.optional emacsSupport emacs;
configureFlags = [ "--without-emacs" ];
configureFlags = stdenv.lib.optional (!emacsSupport) "--without-emacs";
installFlags = stdenv.lib.optional emacsSupport "lispdir=$(out)/share/emacs/site-lisp";
# For some reason the tests fail if executated with nix-build, but pass if
# executed within nix-shell --pure.

View file

@ -3574,7 +3574,9 @@ let
inherit fetchurl stdenv;
});
gnu-smalltalk = callPackage ../development/compilers/gnu-smalltalk { };
gnu-smalltalk = callPackage ../development/compilers/gnu-smalltalk {
emacsSupport = config.emacsSupport or false;
};
gccgo = gccgo48;