@@ -1,44 +1,43 @@
11{ stdenv, csound, desktop-file-utils,
22 fetchFromGitHub, python, python-qt, qmake,
3− qtwebengine, rtmidi, unzip }:
3+ qtwebengine, qtxmlpatterns, rtmidi, fetchpatch }:
44
55stdenv.mkDerivation rec {
66 name = "csound-qt-${version}";
7− version = "0.9.6-beta2";
7+ version = "0.9.6-beta3";
88
99 src = fetchFromGitHub {
1010 owner = "CsoundQt";
1111 repo = "CsoundQt";
1212 rev = "${version}";
13− sha256 = "12jv7cvns3wj2npha0mvpn88kkkfsxsvhgzs2wrw04kbrvbhbffi";
13+ sha256 = "007jhkh0k6qk52r77i067999dwdiimazix6ggp2hvyc4pj6n5dip";
1414 };
1515
16− patches = [ ./rtmidipath.patch ];
16+ patches = [(fetchpatch {
17+ name = "examplepath.patch";
18+ url = "https://github.com/CsoundQt/CsoundQt/commit/09f2d515bff638cbcacb450979d66e273a59fdec.diff";
19+ sha256 = "0y23kf8m1mh9mklsvf908b2b8m2w2rji8qvws44paf1kpwnwdmgm";
20+ })
21+ ./rtmidipath.patch];
1722
18− nativeBuildInputs = [ qmake qtwebengine ];
23+ nativeBuildInputs = [ qmake qtwebengine qtxmlpatterns ];
1924
20− buildInputs = [ csound desktop-file-utils rtmidi unzip ];
25+ buildInputs = [ csound desktop-file-utils rtmidi ];
2126
2227 qmakeFlags = [ "qcs.pro" "CONFIG+=rtmidi" "CONFIG+=pythonqt"
28+ "CONFIG+=record_support" "CONFIG+=html_webengine"
2329 "CSOUND_INCLUDE_DIR=${csound}/include/csound"
2430 "CSOUND_LIBRARY_DIR=${csound}/lib"
2531 "RTMIDI_DIR=${rtmidi.src}"
26− "PYTHONQT_SRC_DIR=${python-qt}/lib"
32+ "PYTHONQT_SRC_DIR=${python-qt}/include/PythonQt"
2733 "PYTHONQT_LIB_DIR=${python-qt}/lib"
28− "LIBS+=${python-qt}/lib/libPythonQt-Qt5-Python2.7.so"
29− "LIBS+=${python-qt}/lib/libPythonQt_QtAll-Qt5-Python2.7.so"
34+ "LIBS+=-L${python-qt}/lib"
3035 "INCLUDEPATH+=${python-qt}/include/PythonQt"
3136 "INCLUDEPATH+=${python}/include/python2.7"
32− "INSTALL_DIR=$(out)"
33− "SHARE_DIR=$(out)/share"
37+ "INSTALL_DIR=${placeholder "out"}"
38+ "SHARE_DIR=${placeholder "out"}/share"
3439 ];
3540
36− installPhase = ''
37− mkdir -p $out
38− cp -r bin $out
39− make install
40− '';
41−
4241 meta = with stdenv.lib; {
4342 description = "CsoundQt is a frontend for Csound with editor, integrated help, widgets and other features.";
4443 homepage = https://csoundqt.github.io/;