lol

Merge pull request #7119 from joachifm/gnu-smalltalk-emacs-support

gnu-smalltalk: optional emacs support

lethalman e2bc785f f1e2b02c

+11 -4
+8 -3
pkgs/development/compilers/gnu-smalltalk/default.nix
··· 1 1 { stdenv, fetchurl, pkgconfig, libtool, zip, libffi, libsigsegv, readline, gmp, 2 - gnutls, gnome, cairo, SDL, sqlite }: 2 + gnutls, gnome, cairo, SDL, sqlite, emacsSupport ? false, emacs ? null }: 3 + 4 + assert emacsSupport -> (emacs != null); 3 5 4 6 let # The gnu-smalltalk project has a dependency to the libsigsegv library. 5 7 # The project ships with sources for this library, but deprecated this option. ··· 26 28 buildInputs = [ 27 29 pkgconfig libtool zip libffi libsigsegv-shared readline gmp gnutls gnome.gtk 28 30 cairo SDL sqlite 29 - ]; 31 + ] 32 + ++ stdenv.lib.optional emacsSupport emacs; 33 + 34 + configureFlags = stdenv.lib.optional (!emacsSupport) "--without-emacs"; 30 35 31 - configureFlags = [ "--without-emacs" ]; 36 + installFlags = stdenv.lib.optional emacsSupport "lispdir=$(out)/share/emacs/site-lisp"; 32 37 33 38 # For some reason the tests fail if executated with nix-build, but pass if 34 39 # executed within nix-shell --pure.
+3 -1
pkgs/top-level/all-packages.nix
··· 3574 3574 inherit fetchurl stdenv; 3575 3575 }); 3576 3576 3577 - gnu-smalltalk = callPackage ../development/compilers/gnu-smalltalk { }; 3577 + gnu-smalltalk = callPackage ../development/compilers/gnu-smalltalk { 3578 + emacsSupport = config.emacsSupport or false; 3579 + }; 3578 3580 3579 3581 gccgo = gccgo48; 3580 3582