mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-21 05:04:00 +00:00
46 lines
1.5 KiB
Nix
46 lines
1.5 KiB
Nix
{ lib, stdenv, csound, desktop-file-utils,
|
|
fetchFromGitHub, python, python-qt, qmake,
|
|
qtwebengine, qtxmlpatterns, rtmidi, wrapQtAppsHook }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "csound-qt";
|
|
version = "1.1.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "CsoundQt";
|
|
repo = "CsoundQt";
|
|
rev = "v${version}";
|
|
hash = "sha256-PdylVOnunbB36dbZX/wzd9A8CJPDv/xH5HPLAUkRu28=";
|
|
};
|
|
|
|
patches = [
|
|
./rtmidipath.patch
|
|
];
|
|
|
|
nativeBuildInputs = [ qmake qtwebengine qtxmlpatterns wrapQtAppsHook ];
|
|
|
|
buildInputs = [ csound desktop-file-utils rtmidi ];
|
|
|
|
qmakeFlags = [ "qcs.pro" "CONFIG+=rtmidi" "CONFIG+=pythonqt"
|
|
"CONFIG+=record_support" "CONFIG+=html_webengine"
|
|
"CSOUND_INCLUDE_DIR=${csound}/include/csound"
|
|
"CSOUND_LIBRARY_DIR=${csound}/lib"
|
|
"RTMIDI_DIR=${rtmidi.src}"
|
|
"PYTHONQT_SRC_DIR=${python-qt}/include/PythonQt"
|
|
"PYTHONQT_LIB_DIR=${python-qt}/lib"
|
|
"LIBS+=-L${python-qt}/lib"
|
|
"INCLUDEPATH+=${python-qt}/include/PythonQt"
|
|
"INCLUDEPATH+=${python}/include/python${python.pythonVersion}"
|
|
"INSTALL_DIR=${placeholder "out"}"
|
|
"SHARE_DIR=${placeholder "out"}/share"
|
|
];
|
|
|
|
meta = with 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 ];
|
|
};
|
|
}
|