3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/interpreters/supercollider/default.nix

41 lines
1.2 KiB
Nix
Raw Normal View History

{ lib, stdenv, mkDerivation, fetchurl, cmake, pkg-config, alsa-lib
2015-07-30 12:09:58 +01:00
, libjack2, libsndfile, fftw, curl, gcc
2019-06-26 13:34:34 +01:00
, libXt, qtbase, qttools, qtwebengine
, readline, qtwebsockets, useSCEL ? false, emacs
2014-01-04 13:39:35 +00:00
}:
2021-03-23 11:35:42 +00:00
let
inherit (lib) optional;
in
2021-03-23 11:35:42 +00:00
mkDerivation rec {
pname = "supercollider";
2021-08-22 06:53:24 +01:00
version = "3.12.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";
2021-08-22 06:53:24 +01:00
sha256 = "sha256-RgCL50pyjNgy+H+Crvfgds86pmTao2FS+IF3gRHu5NM=";
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
nativeBuildInputs = [ cmake pkg-config qttools ];
2014-01-04 13:39:35 +00:00
buildInputs = [
2019-06-26 13:34:34 +01:00
gcc libjack2 libsndfile fftw curl libXt qtbase qtwebengine qtwebsockets readline ]
++ optional (!stdenv.isDarwin) alsa-lib
++ optional useSCEL emacs;
2016-08-02 23:27:03 +01:00
meta = with lib; {
2016-08-02 23:27:03 +01:00
description = "Programming language for real time audio synthesis";
homepage = "https://supercollider.github.io";
2019-06-26 13:34:34 +01:00
maintainers = with maintainers; [ mrmebelman ];
2021-03-23 11:35:42 +00:00
license = licenses.gpl3Plus;
2018-10-13 12:46:30 +01:00
platforms = [ "x686-linux" "x86_64-linux" ];
2016-08-02 23:27:03 +01:00
};
2014-01-04 13:39:35 +00:00
}