2019-08-31 06:02:52 -07:00
|
|
|
{ stdenv, mkDerivation, fetchurl, cmake, pkgconfig, alsaLib
|
2015-07-30 04:09:58 -07:00
|
|
|
, libjack2, libsndfile, fftw, curl, gcc
|
2019-06-26 05:34:34 -07:00
|
|
|
, libXt, qtbase, qttools, qtwebengine
|
|
|
|
, readline, qtwebsockets, useSCEL ? false, emacs
|
2014-01-04 05:39:35 -08:00
|
|
|
}:
|
2016-02-24 13:29:55 -08:00
|
|
|
|
2016-06-19 11:27:36 -07:00
|
|
|
let optional = stdenv.lib.optional;
|
|
|
|
in
|
2014-01-04 05:39:35 -08:00
|
|
|
|
2019-08-31 06:02:52 -07:00
|
|
|
mkDerivation rec {
|
2019-08-15 05:41:18 -07:00
|
|
|
pname = "supercollider";
|
2020-01-30 03:03:45 -08:00
|
|
|
version = "3.10.4";
|
2014-01-04 05:39:35 -08:00
|
|
|
|
|
|
|
|
|
|
|
src = fetchurl {
|
2019-09-03 02:20:00 -07:00
|
|
|
url = "https://github.com/supercollider/supercollider/releases/download/Version-${version}/SuperCollider-${version}-Source.tar.bz2";
|
2020-01-30 03:03:45 -08:00
|
|
|
sha256 = "168r0c0axgajsdzc1caklydrnagy4flv7i7jcyqwpc9agsqy0nnf";
|
2014-01-04 05:39:35 -08:00
|
|
|
};
|
|
|
|
|
2016-02-26 09:38:15 -08:00
|
|
|
hardeningDisable = [ "stackprotector" ];
|
2016-02-24 13:29:55 -08:00
|
|
|
|
2019-08-31 06:02:52 -07:00
|
|
|
cmakeFlags = [
|
|
|
|
"-DSC_WII=OFF"
|
|
|
|
"-DSC_EL=${if useSCEL then "ON" else "OFF"}"
|
|
|
|
];
|
2014-01-04 05:39:35 -08:00
|
|
|
|
2017-03-24 13:00:03 -07:00
|
|
|
nativeBuildInputs = [ cmake pkgconfig qttools ];
|
2014-01-04 05:39:35 -08:00
|
|
|
|
2019-09-03 02:20:00 -07:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2016-02-24 13:29:55 -08:00
|
|
|
buildInputs = [
|
2019-06-26 05:34:34 -07:00
|
|
|
gcc libjack2 libsndfile fftw curl libXt qtbase qtwebengine qtwebsockets readline ]
|
2018-09-28 06:52:38 -07:00
|
|
|
++ optional (!stdenv.isDarwin) alsaLib
|
2016-07-09 04:11:02 -07:00
|
|
|
++ optional useSCEL emacs;
|
2016-08-02 15:27:03 -07:00
|
|
|
|
2019-06-26 05:34:34 -07:00
|
|
|
meta = with stdenv.lib; {
|
2016-08-02 15:27:03 -07:00
|
|
|
description = "Programming language for real time audio synthesis";
|
2019-09-03 02:20:00 -07:00
|
|
|
homepage = "https://supercollider.github.io";
|
2019-06-26 05:34:34 -07:00
|
|
|
maintainers = with maintainers; [ mrmebelman ];
|
2019-06-27 07:28:03 -07:00
|
|
|
license = licenses.gpl3;
|
2018-10-13 04:46:30 -07:00
|
|
|
platforms = [ "x686-linux" "x86_64-linux" ];
|
2016-08-02 15:27:03 -07:00
|
|
|
};
|
2014-01-04 05:39:35 -08:00
|
|
|
}
|