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 { stdenv, fetchurl, pkgconfig, libtool, zip, libffi, libsigsegv, readline, gmp, 2 - gnutls, gnome, cairo, SDL, sqlite }: 3 4 let # 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 - ]; 30 31 - configureFlags = [ "--without-emacs" ]; 32 33 # 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); 5 6 let # 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"; 35 36 + installFlags = stdenv.lib.optional emacsSupport "lispdir=$(out)/share/emacs/site-lisp"; 37 38 # For some reason the tests fail if executated with nix-build, but pass if 39 # executed within nix-shell --pure.
+3 -1
pkgs/top-level/all-packages.nix
··· 3574 inherit fetchurl stdenv; 3575 }); 3576 3577 - gnu-smalltalk = callPackage ../development/compilers/gnu-smalltalk { }; 3578 3579 gccgo = gccgo48; 3580
··· 3574 inherit fetchurl stdenv; 3575 }); 3576 3577 + gnu-smalltalk = callPackage ../development/compilers/gnu-smalltalk { 3578 + emacsSupport = config.emacsSupport or false; 3579 + }; 3580 3581 gccgo = gccgo48; 3582