2014-01-04 14:39:35 +01:00
|
|
|
{ stdenv, fetchurl, cmake, pkgconfig
|
2015-07-30 13:09:58 +02:00
|
|
|
, libjack2, libsndfile, fftw, curl, gcc
|
2014-05-11 04:18:03 +02:00
|
|
|
, libXt, qt, readline
|
|
|
|
, useSCEL ? false, emacs
|
2014-01-04 14:39:35 +01:00
|
|
|
}:
|
2016-02-24 22:29:55 +01:00
|
|
|
|
2014-05-11 04:18:03 +02:00
|
|
|
let optional = stdenv.lib.optional; in
|
2014-01-04 14:39:35 +01:00
|
|
|
|
2016-02-24 22:29:55 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2014-01-04 14:39:35 +01:00
|
|
|
name = "supercollider-3.6.6";
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Programming language for real time audio synthesis";
|
|
|
|
homepage = "http://supercollider.sourceforge.net/";
|
|
|
|
license = stdenv.lib.licenses.gpl3Plus;
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
};
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/supercollider/Source/3.6/SuperCollider-3.6.6-Source.tar.bz2";
|
|
|
|
sha256 = "11khrv6jchs0vv0lv43am8lp0x1rr3h6l2xj9dmwrxcpdayfbalr";
|
|
|
|
};
|
|
|
|
|
2016-02-26 18:38:15 +01:00
|
|
|
hardeningDisable = [ "stackprotector" ];
|
2016-02-24 22:29:55 +01:00
|
|
|
|
2014-01-04 14:39:35 +01:00
|
|
|
# QGtkStyle unavailable
|
|
|
|
patchPhase = ''
|
|
|
|
substituteInPlace editors/sc-ide/widgets/code_editor/autocompleter.cpp \
|
|
|
|
--replace Q_WS_X11 Q_GTK_STYLE
|
|
|
|
'';
|
|
|
|
|
2014-05-11 04:18:03 +02:00
|
|
|
cmakeFlags = ''
|
|
|
|
-DSC_WII=OFF
|
2016-02-24 22:29:55 +01:00
|
|
|
-DSC_EL=${if useSCEL then "ON" else "OFF"}
|
2014-05-11 04:18:03 +02:00
|
|
|
'';
|
2014-01-04 14:39:35 +01:00
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake pkgconfig ];
|
|
|
|
|
2016-02-24 22:29:55 +01:00
|
|
|
buildInputs = [
|
2015-07-30 13:09:58 +02:00
|
|
|
gcc libjack2 libsndfile fftw curl libXt qt readline ]
|
2014-05-11 04:18:03 +02:00
|
|
|
++ optional useSCEL emacs;
|
2014-01-04 14:39:35 +01:00
|
|
|
}
|