2021-06-28 23:13:55 +00:00
|
|
|
{ lib, stdenv, mkDerivation, fetchurl, cmake, pkg-config, alsa-lib
|
2020-04-24 23:36:52 +00:00
|
|
|
, libjack2, libsndfile, fftw, curl, gcc
|
|
|
|
, libXt, qtbase, qttools, qtwebengine
|
|
|
|
, readline, qtwebsockets, useSCEL ? false, emacs
|
|
|
|
}:
|
|
|
|
|
2021-04-08 16:26:57 +00:00
|
|
|
let
|
|
|
|
inherit (lib) optional;
|
2020-04-24 23:36:52 +00:00
|
|
|
in
|
2021-04-08 16:26:57 +00:00
|
|
|
mkDerivation rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "supercollider";
|
2022-01-22 01:22:15 +00:00
|
|
|
version = "3.12.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/supercollider/supercollider/releases/download/Version-${version}/SuperCollider-${version}-Source.tar.bz2";
|
2022-01-22 01:22:15 +00:00
|
|
|
sha256 = "sha256-1QYorCgSwBK+SVAm4k7HZirr1j+znPmVicFmJdvO3g4=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
hardeningDisable = [ "stackprotector" ];
|
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DSC_WII=OFF"
|
|
|
|
"-DSC_EL=${if useSCEL then "ON" else "OFF"}"
|
|
|
|
];
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ cmake pkg-config qttools ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
gcc libjack2 libsndfile fftw curl libXt qtbase qtwebengine qtwebsockets readline ]
|
2021-06-28 23:13:55 +00:00
|
|
|
++ optional (!stdenv.isDarwin) alsa-lib
|
2020-04-24 23:36:52 +00:00
|
|
|
++ optional useSCEL emacs;
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Programming language for real time audio synthesis";
|
|
|
|
homepage = "https://supercollider.github.io";
|
|
|
|
maintainers = with maintainers; [ mrmebelman ];
|
2021-04-08 16:26:57 +00:00
|
|
|
license = licenses.gpl3Plus;
|
2021-10-06 13:57:05 +00:00
|
|
|
platforms = platforms.linux;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|