2018-09-28 15:52:38 +02:00
|
|
|
{ stdenv, fetchurl, cmake, pkgconfig, alsaLib
|
2015-07-30 13:09:58 +02:00
|
|
|
, libjack2, libsndfile, fftw, curl, gcc
|
2019-06-26 14:34:34 +02:00
|
|
|
, libXt, qtbase, qttools, qtwebengine
|
|
|
|
, readline, qtwebsockets, useSCEL ? false, emacs
|
2014-01-04 14:39:35 +01:00
|
|
|
}:
|
2016-02-24 22:29:55 +01:00
|
|
|
|
2016-06-19 20:27:36 +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 {
|
2016-08-03 00:27:03 +02:00
|
|
|
name = "supercollider-${version}";
|
2019-06-26 14:34:34 +02:00
|
|
|
version = "3.10.2";
|
2014-01-04 14:39:35 +01:00
|
|
|
|
|
|
|
|
|
|
|
src = fetchurl {
|
2016-08-03 00:27:03 +02:00
|
|
|
url = "https://github.com/supercollider/supercollider/releases/download/Version-${version}/SuperCollider-${version}-Source-linux.tar.bz2";
|
2019-06-26 14:34:34 +02:00
|
|
|
sha256 = "0ynz1ydcpsd5h57h1n4a7avm6p1cif5a8rkmz4qpr46pr8z9p6iq";
|
2014-01-04 14:39:35 +01:00
|
|
|
};
|
|
|
|
|
2016-02-26 18:38:15 +01:00
|
|
|
hardeningDisable = [ "stackprotector" ];
|
2016-02-24 22:29:55 +01:00
|
|
|
|
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
|
|
|
|
2017-03-24 21:00:03 +01:00
|
|
|
nativeBuildInputs = [ cmake pkgconfig qttools ];
|
2014-01-04 14:39:35 +01:00
|
|
|
|
2016-02-24 22:29:55 +01:00
|
|
|
buildInputs = [
|
2019-06-26 14:34:34 +02:00
|
|
|
gcc libjack2 libsndfile fftw curl libXt qtbase qtwebengine qtwebsockets readline ]
|
2018-09-28 15:52:38 +02:00
|
|
|
++ optional (!stdenv.isDarwin) alsaLib
|
2016-07-09 13:11:02 +02:00
|
|
|
++ optional useSCEL emacs;
|
2016-08-03 00:27:03 +02:00
|
|
|
|
2019-06-26 14:34:34 +02:00
|
|
|
meta = with stdenv.lib; {
|
2016-08-03 00:27:03 +02:00
|
|
|
description = "Programming language for real time audio synthesis";
|
2017-08-01 22:03:30 +02:00
|
|
|
homepage = http://supercollider.sourceforge.net/;
|
2019-06-26 14:34:34 +02:00
|
|
|
maintainers = with maintainers; [ mrmebelman ];
|
2019-06-27 16:28:03 +02:00
|
|
|
license = licenses.gpl3;
|
2018-10-13 13:46:30 +02:00
|
|
|
platforms = [ "x686-linux" "x86_64-linux" ];
|
2016-08-03 00:27:03 +02:00
|
|
|
};
|
2014-01-04 14:39:35 +01:00
|
|
|
}
|