diff options
author | Henry Till <henrytill@gmail.com> | 2014-05-10 22:18:03 -0400 |
---|---|---|
committer | Henry Till <henrytill@gmail.com> | 2014-05-10 22:18:03 -0400 |
commit | 6223cbd7a836eedd6af2068416ba4531e44886c8 (patch) | |
tree | 137cb3cb63dea037ca074dcf809e92d161d33872 /pkgs/development/interpreters/supercollider | |
parent | cb7c920e2493040d7ac82656bf4382f6db87098c (diff) |
supercollider: added emacs support
Diffstat (limited to 'pkgs/development/interpreters/supercollider')
-rw-r--r-- | pkgs/development/interpreters/supercollider/default.nix | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/pkgs/development/interpreters/supercollider/default.nix b/pkgs/development/interpreters/supercollider/default.nix index 77a9392ba8bb5..97808f6faf131 100644 --- a/pkgs/development/interpreters/supercollider/default.nix +++ b/pkgs/development/interpreters/supercollider/default.nix @@ -1,9 +1,12 @@ { stdenv, fetchurl, cmake, pkgconfig , jackaudio, libsndfile, fftw, curl -, libXt, qt +, libXt, qt, readline +, useSCEL ? false, emacs }: + +let optional = stdenv.lib.optional; in -stdenv.mkDerivation rec { +stdenv.mkDerivation rec { name = "supercollider-3.6.6"; meta = { @@ -24,15 +27,14 @@ stdenv.mkDerivation rec { --replace Q_WS_X11 Q_GTK_STYLE ''; - cmakeFlags = [ - "-DSC_WII=OFF" - "-DSC_EL=OFF" - ]; + cmakeFlags = '' + -DSC_WII=OFF + -DSC_EL=${if useSCEL then "ON" else "OFF"} + ''; nativeBuildInputs = [ cmake pkgconfig ]; - buildInputs = [ - jackaudio libsndfile fftw curl - libXt qt - ]; + buildInputs = [ + jackaudio libsndfile fftw curl libXt qt readline ] + ++ optional useSCEL emacs; } |