1 { lib, stdenv, csound, desktop-file-utils,
2 fetchFromGitHub, python3, python-qt, qmake,
3 qtwebengine, qtxmlpatterns, rtmidi, wrapQtAppsHook }:
5 stdenv.mkDerivation rec {
9 src = fetchFromGitHub {
13 hash = "sha256-ufjZQnO3H5pwdeEwGqunbXCfx7nvWTzak4cwVYWqvz4=";
20 nativeBuildInputs = [ qmake qtwebengine qtxmlpatterns wrapQtAppsHook ];
22 buildInputs = [ csound desktop-file-utils rtmidi ];
24 qmakeFlags = [ "qcs.pro" "CONFIG+=rtmidi" "CONFIG+=pythonqt"
25 "CONFIG+=record_support" "CONFIG+=html_webengine"
26 "CSOUND_INCLUDE_DIR=${csound}/include/csound"
27 "CSOUND_LIBRARY_DIR=${csound}/lib"
28 "RTMIDI_DIR=${rtmidi.src}"
29 "PYTHONQT_SRC_DIR=${python-qt.src}"
30 "PYTHONQT_LIB_DIR=${python-qt}/lib"
31 "LIBS+=-L${python-qt}/lib"
32 "INSTALL_DIR=${placeholder "out"}"
33 "SHARE_DIR=${placeholder "out"}/share"
34 "PYTHON_DIR=${python3}"
35 "PYTHON_VERSION=3.${python3.sourceVersion.minor}"
39 description = "CsoundQt is a frontend for Csound with editor, integrated help, widgets and other features";
40 homepage = "https://csoundqt.github.io/";
41 license = licenses.gpl2;
42 platforms = platforms.linux;
43 maintainers = with maintainers; [ hlolli ];