2021-07-27 18:56:09 +02:00
|
|
|
{ lib, python2Packages, fetchFromGitHub, pkg-config, glib, alsa-lib, libjack2 }:
|
2019-06-16 14:57:36 +02:00
|
|
|
|
2021-07-27 18:56:09 +02:00
|
|
|
python2Packages.buildPythonApplication {
|
2020-02-15 06:22:40 +01:00
|
|
|
version = "2015-11-17";
|
2019-06-16 14:57:36 +02:00
|
|
|
pname = "mididings";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dsacre";
|
|
|
|
repo = "mididings";
|
|
|
|
rev = "bbec99a8c878a2a7029e78e84fc736e4a68ed5a0";
|
|
|
|
sha256 = "1pdf5mib87zy7yjh9vpasja419h28wvgq6x5hw2hkm7bg9ds4p2m";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2021-07-27 18:56:09 +02:00
|
|
|
buildInputs = [ glib alsa-lib libjack2 python2Packages.boost ];
|
|
|
|
propagatedBuildInputs = with python2Packages; [ decorator ]
|
2019-06-16 14:57:36 +02:00
|
|
|
# for livedings
|
|
|
|
++ [ tkinter pyliblo ]
|
|
|
|
# for mididings.extra
|
|
|
|
++ [ dbus-python pyinotify ]
|
|
|
|
# to read/write standard MIDI files
|
|
|
|
++ [ pysmf ]
|
|
|
|
# so mididings knows where to look for config files
|
|
|
|
++ [ pyxdg ];
|
|
|
|
|
2021-01-15 10:19:50 +01:00
|
|
|
preBuild = with lib.versions; ''
|
2019-06-16 14:57:36 +02:00
|
|
|
substituteInPlace setup.py \
|
2021-07-27 18:56:09 +02:00
|
|
|
--replace boost_python "boost_python${major python2Packages.python.version}${minor python2Packages.python.version}"
|
2019-06-16 14:57:36 +02:00
|
|
|
'';
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2019-06-16 14:57:36 +02:00
|
|
|
description = "A MIDI router and processor based on Python, supporting ALSA and JACK MIDI";
|
|
|
|
homepage = "http://das.nasophon.de/mididings";
|
|
|
|
license = licenses.gpl2;
|
2021-04-29 07:21:13 +02:00
|
|
|
maintainers = [ ];
|
2019-06-16 14:57:36 +02:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|