2014-01-04 13:39:35 +00:00
|
|
|
{ stdenv, fetchurl, cmake, pkgconfig
|
2015-07-30 11:09:58 +00:00
|
|
|
, libjack2, libsndfile, fftw, curl, gcc
|
2017-03-24 20:00:03 +00:00
|
|
|
, libXt, qtbase, qttools, qtwebkit, readline
|
2014-05-11 02:18:03 +00:00
|
|
|
, useSCEL ? false, emacs
|
2014-01-04 13:39:35 +00:00
|
|
|
}:
|
2016-02-24 21:29:55 +00:00
|
|
|
|
2016-06-19 18:27:36 +00: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 22:27:03 +00:00
|
|
|
name = "supercollider-${version}";
|
2018-04-20 05:41:26 +00:00
|
|
|
version = "3.9.3";
|
2014-01-04 13:39:35 +00:00
|
|
|
|
|
|
|
|
|
|
|
src = fetchurl {
|
2016-08-02 22:27:03 +00:00
|
|
|
url = "https://github.com/supercollider/supercollider/releases/download/Version-${version}/SuperCollider-${version}-Source-linux.tar.bz2";
|
2018-04-20 05:41:26 +00:00
|
|
|
sha256 = "1d8ixfl100jvlialxdizp8wqsl1mp5pi2bam25vp97bhjd59cfdr";
|
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 02:18:03 +00:00
|
|
|
cmakeFlags = ''
|
|
|
|
-DSC_WII=OFF
|
2016-02-24 21:29:55 +00:00
|
|
|
-DSC_EL=${if useSCEL then "ON" else "OFF"}
|
2014-05-11 02:18:03 +00:00
|
|
|
'';
|
2014-01-04 13:39:35 +00:00
|
|
|
|
2017-03-24 20:00:03 +00:00
|
|
|
nativeBuildInputs = [ cmake pkgconfig qttools ];
|
2014-01-04 13:39:35 +00:00
|
|
|
|
2016-02-24 21:29:55 +00:00
|
|
|
buildInputs = [
|
2017-03-24 20:00:03 +00:00
|
|
|
gcc libjack2 libsndfile fftw curl libXt qtbase qtwebkit readline ]
|
2016-07-09 11:11:02 +00:00
|
|
|
++ optional useSCEL emacs;
|
2016-08-02 22:27:03 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Programming language for real time audio synthesis";
|
2017-08-01 20:03:30 +00:00
|
|
|
homepage = http://supercollider.sourceforge.net/;
|
2016-08-02 22:27:03 +00:00
|
|
|
license = stdenv.lib.licenses.gpl3Plus;
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
};
|
2014-01-04 13:39:35 +00:00
|
|
|
}
|