nixpkgs/pkgs/development/interpreters/supercollider/default.nix

44 lines
1.2 KiB
Nix
Raw Normal View History

{ stdenv, mkDerivation, fetchurl, cmake, pkgconfig, 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
}:
let optional = stdenv.lib.optional;
in
2014-01-04 13:39:35 +00:00
mkDerivation rec {
pname = "supercollider";
2020-04-07 19:06:44 +00:00
version = "3.11.0";
2014-01-04 13:39:35 +00:00
src = fetchurl {
url = "https://github.com/supercollider/supercollider/releases/download/Version-${version}/SuperCollider-${version}-Source.tar.bz2";
2020-04-07 19:06:44 +00:00
sha256 = "0l5j7sqrjlm85ql91ybcrvdykfkkwfqd7w3m4llbymw720r2ln9p";
2014-01-04 13:39:35 +00:00
};
hardeningDisable = [ "stackprotector" ];
cmakeFlags = [
"-DSC_WII=OFF"
"-DSC_EL=${if useSCEL then "ON" else "OFF"}"
];
2014-01-04 13:39:35 +00:00
2017-03-24 20:00:03 +00:00
nativeBuildInputs = [ cmake pkgconfig qttools ];
2014-01-04 13:39:35 +00:00
enableParallelBuilding = true;
buildInputs = [
2019-06-26 12:34:34 +00:00
gcc libjack2 libsndfile fftw curl libXt qtbase qtwebengine qtwebsockets readline ]
++ optional (!stdenv.isDarwin) alsaLib
++ optional useSCEL emacs;
2016-08-02 22:27:03 +00:00
2019-06-26 12:34:34 +00:00
meta = with stdenv.lib; {
2016-08-02 22:27:03 +00:00
description = "Programming language for real time audio synthesis";
homepage = "https://supercollider.github.io";
2019-06-26 12:34:34 +00:00
maintainers = with maintainers; [ mrmebelman ];
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
}