1{ stdenv, fetchurl, cmake, pkgconfig
2, libjack2, libsndfile, fftw, curl, gcc
3, libXt, qt, readline
4, useSCEL ? false, emacs
5}:
6
7let optional = stdenv.lib.optional; in
8
9stdenv.mkDerivation rec {
10 name = "supercollider-3.6.6";
11
12 meta = {
13 description = "Programming language for real time audio synthesis";
14 homepage = "http://supercollider.sourceforge.net/";
15 license = stdenv.lib.licenses.gpl3Plus;
16 platforms = stdenv.lib.platforms.linux;
17 };
18
19 src = fetchurl {
20 url = "mirror://sourceforge/supercollider/Source/3.6/SuperCollider-3.6.6-Source.tar.bz2";
21 sha256 = "11khrv6jchs0vv0lv43am8lp0x1rr3h6l2xj9dmwrxcpdayfbalr";
22 };
23
24 # QGtkStyle unavailable
25 patchPhase = ''
26 substituteInPlace editors/sc-ide/widgets/code_editor/autocompleter.cpp \
27 --replace Q_WS_X11 Q_GTK_STYLE
28 '';
29
30 cmakeFlags = ''
31 -DSC_WII=OFF
32 -DSC_EL=${if useSCEL then "ON" else "OFF"}
33 '';
34
35 nativeBuildInputs = [ cmake pkgconfig ];
36
37 buildInputs = [
38 gcc libjack2 libsndfile fftw curl libXt qt readline ]
39 ++ optional useSCEL emacs;
40}