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

40 lines
1 KiB
Nix
Raw Normal View History

2014-01-04 14:39:35 +01:00
{ stdenv, fetchurl, cmake, pkgconfig
2015-07-30 13:09:58 +02:00
, libjack2, libsndfile, fftw, curl, gcc
2017-03-24 21:00:03 +01:00
, libXt, qtbase, qttools, qtwebkit, readline
2014-05-11 04:18:03 +02:00
, useSCEL ? false, emacs
2014-01-04 14:39:35 +01:00
}:
let optional = stdenv.lib.optional;
in
2014-01-04 14:39:35 +01:00
stdenv.mkDerivation rec {
2016-08-03 00:27:03 +02:00
name = "supercollider-${version}";
version = "3.9.2";
2014-01-04 14:39:35 +01:00
src = fetchurl {
2016-08-03 00:27:03 +02:00
url = "https://github.com/supercollider/supercollider/releases/download/Version-${version}/SuperCollider-${version}-Source-linux.tar.bz2";
sha256 = "0d3cb6dw8jz7ijriqn3rlwin24gffczp69hl17pzxj1d5w57yj44";
2014-01-04 14:39:35 +01:00
};
hardeningDisable = [ "stackprotector" ];
2014-05-11 04:18:03 +02:00
cmakeFlags = ''
-DSC_WII=OFF
-DSC_EL=${if useSCEL then "ON" else "OFF"}
2014-05-11 04:18:03 +02:00
'';
2014-01-04 14:39:35 +01:00
2017-03-24 21:00:03 +01:00
nativeBuildInputs = [ cmake pkgconfig qttools ];
2014-01-04 14:39:35 +01:00
buildInputs = [
2017-03-24 21:00:03 +01:00
gcc libjack2 libsndfile fftw curl libXt qtbase qtwebkit readline ]
++ optional useSCEL emacs;
2016-08-03 00:27:03 +02:00
meta = {
description = "Programming language for real time audio synthesis";
homepage = http://supercollider.sourceforge.net/;
2016-08-03 00:27:03 +02:00
license = stdenv.lib.licenses.gpl3Plus;
platforms = stdenv.lib.platforms.linux;
};
2014-01-04 14:39:35 +01:00
}