Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- { stdenv, csound, fetchFromGitHub,
- fetchurl, python, pythonQt, qmake,
- qtwebengine, rtmidi, unzip }:
- stdenv.mkDerivation rec {
- name = "csound-qt-${version}";
- version = "0.9.6-beta2";
- src = fetchFromGitHub {
- owner = "CsoundQt";
- repo = "CsoundQt";
- rev = "${version}";
- sha256 = "12jv7cvns3wj2npha0mvpn88kkkfsxsvhgzs2wrw04kbrvbhbffi";
- };
- patches = [ ./rtmidipath.patch ];
- nativeBuildInputs = [ qmake qtwebengine ];
- buildInputs = [ csound rtmidi unzip ];
- qmakeFlags = [ "qcs.pro" "CONFIG+=rtmidi" "CONFIG+=pythonqt"
- "CSOUND_INCLUDE_DIR=${csound}/include/csound"
- "CSOUND_LIBRARY_DIR=${csound}/lib"
- "RTMIDI_DIR=${rtmidi.src}"
- "PYTHONQT_SRC_DIR=${pythonQt}/lib"
- "PYTHONQT_LIB_DIR=${pythonQt}/lib"
- "LIBS+=${pythonQt}/lib/libPythonQt-Qt5-Python2.7.so"
- "LIBS+=${pythonQt}/lib/libPythonQt_QtAll-Qt5-Python2.7.so"
- "INCLUDEPATH+=${pythonQt}/include/PythonQt"
- "INCLUDEPATH+=${python}/include/python2.7"
- "INSTALL_DIR=\\$out"
- "SHARE_DIR=\\$out/share"
- ];
- meta = with stdenv.lib; {
- description = "CsoundQt is a frontend for Csound with editor, integrated help, widgets and other features.";
- homepage = https://csoundqt.github.io/;
- license = licenses.gpl2;
- platforms = platforms.unix;
- maintainers = with maintainers; [ hlolli ];
- };
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement