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