mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-19 02:44:17 +03:00
csound-qt init: 0.9.6-beta2
This commit is contained in:
parent
e75ecf777b
commit
e9b18349c9
49
pkgs/applications/audio/csound/csound-qt/default.nix
Normal file
49
pkgs/applications/audio/csound/csound-qt/default.nix
Normal file
@ -0,0 +1,49 @@
|
||||
{ stdenv, csound, desktop-file-utils,
|
||||
fetchFromGitHub, python, python-qt, qmake,
|
||||
qtwebengine, rtmidi, unzip }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "csound-qt-${version}";
|
||||
version = "0.9.6-beta2";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "CsoundQt";
|
||||
repo = "CsoundQt";
|
||||
rev = "${version}";
|
||||
sha256 = "12jv7cvns3wj2npha0mvpn88kkkfsxsvhgzs2wrw04kbrvbhbffi";
|
||||
};
|
||||
|
||||
patches = [ ./rtmidipath.patch ];
|
||||
|
||||
nativeBuildInputs = [ qmake qtwebengine ];
|
||||
|
||||
buildInputs = [ csound desktop-file-utils rtmidi unzip ];
|
||||
|
||||
qmakeFlags = [ "qcs.pro" "CONFIG+=rtmidi" "CONFIG+=pythonqt"
|
||||
"CSOUND_INCLUDE_DIR=${csound}/include/csound"
|
||||
"CSOUND_LIBRARY_DIR=${csound}/lib"
|
||||
"RTMIDI_DIR=${rtmidi.src}"
|
||||
"PYTHONQT_SRC_DIR=${python-qt}/lib"
|
||||
"PYTHONQT_LIB_DIR=${python-qt}/lib"
|
||||
"LIBS+=${python-qt}/lib/libPythonQt-Qt5-Python2.7.so"
|
||||
"LIBS+=${python-qt}/lib/libPythonQt_QtAll-Qt5-Python2.7.so"
|
||||
"INCLUDEPATH+=${python-qt}/include/PythonQt"
|
||||
"INCLUDEPATH+=${python}/include/python2.7"
|
||||
"INSTALL_DIR=$(out)"
|
||||
"SHARE_DIR=$(out)/share"
|
||||
];
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out
|
||||
cp -r bin $out
|
||||
make install
|
||||
'';
|
||||
|
||||
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 ];
|
||||
};
|
||||
}
|
17
pkgs/applications/audio/csound/csound-qt/rtmidipath.patch
Normal file
17
pkgs/applications/audio/csound/csound-qt/rtmidipath.patch
Normal file
@ -0,0 +1,17 @@
|
||||
diff --git a/src/src.pri b/src/src.pri
|
||||
index e5e0c896..9a9fa513 100644
|
||||
--- a/src/src.pri
|
||||
+++ b/src/src.pri
|
||||
@@ -155,9 +155,9 @@ pythonqt {
|
||||
"src/pyqcsobject.cpp"
|
||||
}
|
||||
rtmidi {
|
||||
- HEADERS += "src/../$${RTMIDI_DIR}/RtMidi.h"
|
||||
- SOURCES += "src/../$${RTMIDI_DIR}/RtMidi.cpp"
|
||||
- INCLUDEPATH += src/../$${RTMIDI_DIR}
|
||||
+ HEADERS += "$${RTMIDI_DIR}/RtMidi.h"
|
||||
+ SOURCES += "$${RTMIDI_DIR}/RtMidi.cpp"
|
||||
+ INCLUDEPATH += $${RTMIDI_DIR}
|
||||
}
|
||||
|
||||
perfThread_build {
|
@ -16179,6 +16179,12 @@ with pkgs;
|
||||
|
||||
csound = callPackage ../applications/audio/csound { };
|
||||
|
||||
csound-qt = callPackage ../applications/audio/csound/csound-qt {
|
||||
python = python27;
|
||||
qmake = qt59.qmake;
|
||||
qtwebengine = qt59.qtwebengine;
|
||||
};
|
||||
|
||||
cinepaint = callPackage ../applications/graphics/cinepaint {
|
||||
fltk = fltk13;
|
||||
libpng = libpng12;
|
||||
|
Loading…
Reference in New Issue
Block a user