Skip to content

Instantly share code, notes, and snippets.

@miguel-negrao
Last active August 29, 2015 14:09
Show Gist options
  • Save miguel-negrao/8a9f0116fd723d8700f8 to your computer and use it in GitHub Desktop.
Save miguel-negrao/8a9f0116fd723d8700f8 to your computer and use it in GitHub Desktop.
sc 3.7 dev qt5 branch
with (import <nixpkgs> {});
#{ stdenv, fetchurl, cmake, pkgconfig
#, jack2, libsndfile, fftw, curl
#, libXt, qt, readline
#, useSCEL ? false, emacs
#}:
let optional = stdenv.lib.optional; useSCEL = false; in
stdenv.mkDerivation rec {
name = "supercolliderqt5-3.7";
meta = {
description = "Programming language for real time audio synthesis";
homepage = "http://supercollider.sourceforge.net/";
license = stdenv.lib.licenses.gpl3Plus;
platforms = stdenv.lib.platforms.linux;
};
src = fetchgit {
url = https://github.com/supercollider/supercollider.git;
rev = "0712b27ac05c5003afaf45548f912f77b9be9a17";
sha256 = "55614de9c1b68b63ed973e1f45021ba934806ee53533501aafe4c0dfa89d1311";
fetchSubmodules = "true";
};
# QGtkStyle unavailable
patchPhase = ''
substituteInPlace editors/sc-ide/widgets/code_editor/autocompleter.cpp \
--replace Q_WS_X11 Q_GTK_STYLE
'';
cmakeFlags = ''
-DSC_WII=OFF
-DSC_EL=${if useSCEL then "ON" else "OFF"}
'';
nativeBuildInputs = [ cmake pkgconfig ];
buildInputs = [
jack2 libsndfile fftwSinglePrec curl xlibs.libXt qt5 readline udev ]
++ optional useSCEL emacs;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment