mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 15:33:13 +00:00
gnu-smalltalk: optional emacs support
This commit is contained in:
parent
c1c64f70c6
commit
c958486eea
@ -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.
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user