2018-12-03 09:55:15 +00:00
|
|
|
{ stdenv, csound, desktop-file-utils,
|
|
|
|
fetchFromGitHub, python, python-qt, qmake,
|
2019-03-09 18:38:26 +00:00
|
|
|
qtwebengine, qtxmlpatterns, rtmidi, fetchpatch }:
|
2018-12-03 09:55:15 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "csound-qt";
|
2019-03-09 18:38:26 +00:00
|
|
|
version = "0.9.6-beta3";
|
2018-12-03 09:55:15 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "CsoundQt";
|
|
|
|
repo = "CsoundQt";
|
2019-09-09 00:38:31 +01:00
|
|
|
rev = version;
|
2019-03-09 18:38:26 +00:00
|
|
|
sha256 = "007jhkh0k6qk52r77i067999dwdiimazix6ggp2hvyc4pj6n5dip";
|
2018-12-03 09:55:15 +00:00
|
|
|
};
|
|
|
|
|
2019-03-10 16:40:51 +00:00
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
name = "examplepath.patch";
|
|
|
|
url = "https://github.com/CsoundQt/CsoundQt/commit/09f2d515bff638cbcacb450979d66e273a59fdec.diff";
|
|
|
|
sha256 = "0y23kf8m1mh9mklsvf908b2b8m2w2rji8qvws44paf1kpwnwdmgm";
|
|
|
|
})
|
|
|
|
./rtmidipath.patch
|
|
|
|
];
|
2018-12-03 09:55:15 +00:00
|
|
|
|
2019-03-09 18:38:26 +00:00
|
|
|
nativeBuildInputs = [ qmake qtwebengine qtxmlpatterns ];
|
2018-12-03 09:55:15 +00:00
|
|
|
|
2019-03-09 18:38:26 +00:00
|
|
|
buildInputs = [ csound desktop-file-utils rtmidi ];
|
2018-12-03 09:55:15 +00:00
|
|
|
|
|
|
|
qmakeFlags = [ "qcs.pro" "CONFIG+=rtmidi" "CONFIG+=pythonqt"
|
2019-03-09 18:38:26 +00:00
|
|
|
"CONFIG+=record_support" "CONFIG+=html_webengine"
|
2018-12-03 09:55:15 +00:00
|
|
|
"CSOUND_INCLUDE_DIR=${csound}/include/csound"
|
|
|
|
"CSOUND_LIBRARY_DIR=${csound}/lib"
|
|
|
|
"RTMIDI_DIR=${rtmidi.src}"
|
2019-03-09 18:38:26 +00:00
|
|
|
"PYTHONQT_SRC_DIR=${python-qt}/include/PythonQt"
|
2018-12-03 09:55:15 +00:00
|
|
|
"PYTHONQT_LIB_DIR=${python-qt}/lib"
|
2019-03-09 18:38:26 +00:00
|
|
|
"LIBS+=-L${python-qt}/lib"
|
2018-12-03 09:55:15 +00:00
|
|
|
"INCLUDEPATH+=${python-qt}/include/PythonQt"
|
|
|
|
"INCLUDEPATH+=${python}/include/python2.7"
|
2019-03-09 18:38:26 +00:00
|
|
|
"INSTALL_DIR=${placeholder "out"}"
|
|
|
|
"SHARE_DIR=${placeholder "out"}/share"
|
2018-12-03 09:55:15 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
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.linux;
|
|
|
|
maintainers = with maintainers; [ hlolli ];
|
|
|
|
};
|
|
|
|
}
|