forked from mirrors/nixpkgs
22b7afede4
Midi functionality is kind of core to an environment like SuperCollider.
41 lines
1.1 KiB
Nix
41 lines
1.1 KiB
Nix
{ stdenv, fetchurl, cmake, pkgconfig, alsaLib
|
|
, libjack2, libsndfile, fftw, curl, gcc
|
|
, libXt, qtbase, qttools, qtwebkit, readline
|
|
, useSCEL ? false, emacs
|
|
}:
|
|
|
|
let optional = stdenv.lib.optional;
|
|
in
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "supercollider-${version}";
|
|
version = "3.9.3";
|
|
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/supercollider/supercollider/releases/download/Version-${version}/SuperCollider-${version}-Source-linux.tar.bz2";
|
|
sha256 = "1d8ixfl100jvlialxdizp8wqsl1mp5pi2bam25vp97bhjd59cfdr";
|
|
};
|
|
|
|
hardeningDisable = [ "stackprotector" ];
|
|
|
|
cmakeFlags = ''
|
|
-DSC_WII=OFF
|
|
-DSC_EL=${if useSCEL then "ON" else "OFF"}
|
|
'';
|
|
|
|
nativeBuildInputs = [ cmake pkgconfig qttools ];
|
|
|
|
buildInputs = [
|
|
gcc libjack2 libsndfile fftw curl libXt qtbase qtwebkit readline ]
|
|
++ optional (!stdenv.isDarwin) alsaLib
|
|
++ optional useSCEL emacs;
|
|
|
|
meta = {
|
|
description = "Programming language for real time audio synthesis";
|
|
homepage = http://supercollider.sourceforge.net/;
|
|
license = stdenv.lib.licenses.gpl3Plus;
|
|
platforms = [ "x686-linux" "x86_64-linux" ];
|
|
};
|
|
}
|