2014-01-04 13:39:35 +00:00
|
|
|
{ stdenv, fetchurl, cmake, pkgconfig
|
2015-07-30 12:09:58 +01:00
|
|
|
, libjack2, libsndfile, fftw, curl, gcc
|
2016-08-02 23:27:03 +01:00
|
|
|
, libXt, qt55, readline
|
2014-05-11 03:18:03 +01:00
|
|
|
, useSCEL ? false, emacs
|
2014-01-04 13:39:35 +00:00
|
|
|
}:
|
2016-02-24 21:29:55 +00:00
|
|
|
|
2016-06-19 19:27:36 +01:00
|
|
|
let optional = stdenv.lib.optional;
|
|
|
|
in
|
2014-01-04 13:39:35 +00:00
|
|
|
|
2016-02-24 21:29:55 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2016-08-02 23:27:03 +01:00
|
|
|
name = "supercollider-${version}";
|
|
|
|
version = "3.7.2";
|
2014-01-04 13:39:35 +00:00
|
|
|
|
|
|
|
|
|
|
|
src = fetchurl {
|
2016-08-02 23:27:03 +01:00
|
|
|
url = "https://github.com/supercollider/supercollider/releases/download/Version-${version}/SuperCollider-${version}-Source-linux.tar.bz2";
|
|
|
|
sha256 = "1mybxcnl7flliz74kdfnvh18v5dwd9zbdsw2kc7wpl4idcly1n0s";
|
2014-01-04 13:39:35 +00:00
|
|
|
};
|
|
|
|
|
2016-02-26 17:38:15 +00:00
|
|
|
hardeningDisable = [ "stackprotector" ];
|
2016-02-24 21:29:55 +00:00
|
|
|
|
2014-05-11 03:18:03 +01:00
|
|
|
cmakeFlags = ''
|
|
|
|
-DSC_WII=OFF
|
2016-02-24 21:29:55 +00:00
|
|
|
-DSC_EL=${if useSCEL then "ON" else "OFF"}
|
2014-05-11 03:18:03 +01:00
|
|
|
'';
|
2014-01-04 13:39:35 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake pkgconfig ];
|
|
|
|
|
2016-02-24 21:29:55 +00:00
|
|
|
buildInputs = [
|
2016-08-02 23:27:03 +01:00
|
|
|
gcc libjack2 libsndfile fftw curl libXt qt55.qtwebkit qt55.qttools readline ]
|
2016-07-09 12:11:02 +01:00
|
|
|
++ optional useSCEL emacs;
|
2016-08-02 23:27:03 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Programming language for real time audio synthesis";
|
|
|
|
homepage = "http://supercollider.sourceforge.net/";
|
|
|
|
license = stdenv.lib.licenses.gpl3Plus;
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
};
|
2014-01-04 13:39:35 +00:00
|
|
|
}
|