anvil-editor: init at 0.4
[NixPkgs.git] / pkgs / applications / audio / csound / csound-qt / default.nix
bloba747cb2e14d743ea07c8502af28def98369c5529
1 { lib, stdenv, csound, desktop-file-utils,
2   fetchFromGitHub, python3, python-qt, qmake,
3   qtwebengine, qtxmlpatterns, rtmidi, wrapQtAppsHook }:
5 stdenv.mkDerivation rec {
6   pname = "csound-qt";
7   version = "1.1.2";
9   src = fetchFromGitHub {
10     owner = "CsoundQt";
11     repo = "CsoundQt";
12     rev = "v${version}";
13     hash = "sha256-ufjZQnO3H5pwdeEwGqunbXCfx7nvWTzak4cwVYWqvz4=";
14   };
16   patches = [
17     ./rtmidipath.patch
18   ];
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}"
36                  ];
38   meta = with lib; {
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 ];
44   };