1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/interpreters/supercollider/default.nix
2018-01-13 04:03:35 +08:00

40 lines
1 KiB
Nix

{ stdenv, fetchurl, cmake, pkgconfig
, 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.8.1";
src = fetchurl {
url = "https://github.com/supercollider/supercollider/releases/download/Version-${version}/SuperCollider-${version}-Source-linux.tar.bz2";
sha256 = "1y8yb20k3lvj7c93qz2srrkvfv175n4n7p3qj89w0dp085mj0qmw";
};
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 useSCEL emacs;
meta = {
description = "Programming language for real time audio synthesis";
homepage = http://supercollider.sourceforge.net/;
license = stdenv.lib.licenses.gpl3Plus;
platforms = stdenv.lib.platforms.linux;
};
}