38 lines
992 B
Nix
38 lines
992 B
Nix
{ stdenv, fetchurl, cmake, pkgconfig
|
|
, libjack2, libsndfile, fftw, curl, gcc
|
|
, libXt, qt55, readline
|
|
, useSCEL ? false, emacs
|
|
}:
|
|
|
|
let optional = stdenv.lib.optional;
|
|
in
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "supercollider-${version}";
|
|
version = "3.7.2";
|
|
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/supercollider/supercollider/releases/download/Version-${version}/SuperCollider-${version}-Source-linux.tar.bz2";
|
|
sha256 = "1mybxcnl7flliz74kdfnvh18v5dwd9zbdsw2kc7wpl4idcly1n0s";
|
|
};
|
|
|
|
cmakeFlags = ''
|
|
-DSC_WII=OFF
|
|
-DSC_EL=${if useSCEL then "ON" else "OFF"}
|
|
'';
|
|
|
|
nativeBuildInputs = [ cmake pkgconfig ];
|
|
|
|
buildInputs = [
|
|
gcc libjack2 libsndfile fftw curl libXt qt55.qtwebkit qt55.qttools readline ]
|
|
++ optional useSCEL emacs;
|
|
|
|
meta = {
|
|
description = "Programming language for real time audio synthesis";
|
|
homepage = "http://supercollider.sourceforge.net/";
|
|
license = stdenv.lib.licenses.gpl3Plus;
|
|
platforms = stdenv.lib.platforms.linux;
|
|
};
|
|
}
|