nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 csound,
5 desktop-file-utils,
6 fetchFromGitHub,
7 python3,
8 python-qt,
9 qmake,
10 qtwebengine,
11 qtxmlpatterns,
12 rtmidi,
13 wrapQtAppsHook,
14}:
15
16stdenv.mkDerivation rec {
17 pname = "csound-qt";
18 version = "1.1.3";
19
20 src = fetchFromGitHub {
21 owner = "CsoundQt";
22 repo = "CsoundQt";
23 rev = "v${version}";
24 hash = "sha256-ZdQwWRAr6AKLmZ/L0lSxIlvWRLoZIKinn7BAQiR+luk=";
25 };
26
27 patches = [
28 ./rtmidipath.patch
29 ];
30
31 nativeBuildInputs = [
32 qmake
33 qtwebengine
34 qtxmlpatterns
35 wrapQtAppsHook
36 ];
37
38 buildInputs = [
39 csound
40 desktop-file-utils
41 rtmidi
42 ];
43
44 qmakeFlags = [
45 "qcs.pro"
46 "CONFIG+=rtmidi"
47 "CONFIG+=pythonqt"
48 "CONFIG+=record_support"
49 "CONFIG+=html_webengine"
50 "CSOUND_INCLUDE_DIR=${csound}/include/csound"
51 "CSOUND_LIBRARY_DIR=${csound}/lib"
52 "RTMIDI_DIR=${rtmidi.src}"
53 "PYTHONQT_SRC_DIR=${python-qt.src}"
54 "PYTHONQT_LIB_DIR=${python-qt}/lib"
55 "LIBS+=-L${python-qt}/lib"
56 "INSTALL_DIR=${placeholder "out"}"
57 "SHARE_DIR=${placeholder "out"}/share"
58 "PYTHON_DIR=${python3}"
59 "PYTHON_VERSION=3.${python3.sourceVersion.minor}"
60 ];
61
62 meta = with lib; {
63 description = "CsoundQt is a frontend for Csound with editor, integrated help, widgets and other features";
64 homepage = "https://csoundqt.github.io/";
65 license = licenses.gpl2;
66 platforms = platforms.linux;
67 maintainers = with maintainers; [ hlolli ];
68 };
69}