2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, pythonPackages, fetchFromGitHub, pkg-config, glib, alsaLib, libjack2 }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
pythonPackages.buildPythonApplication {
|
|
|
|
version = "2015-11-17";
|
|
|
|
pname = "mididings";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dsacre";
|
|
|
|
repo = "mididings";
|
|
|
|
rev = "bbec99a8c878a2a7029e78e84fc736e4a68ed5a0";
|
|
|
|
sha256 = "1pdf5mib87zy7yjh9vpasja419h28wvgq6x5hw2hkm7bg9ds4p2m";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
buildInputs = [ glib alsaLib libjack2 pythonPackages.boost ];
|
|
|
|
propagatedBuildInputs = with pythonPackages; [ decorator ]
|
|
|
|
# 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 22:18:51 +00:00
|
|
|
preBuild = with lib.versions; ''
|
2020-04-24 23:36:52 +00:00
|
|
|
substituteInPlace setup.py \
|
|
|
|
--replace boost_python "boost_python${major pythonPackages.python.version}${minor pythonPackages.python.version}"
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A MIDI router and processor based on Python, supporting ALSA and JACK MIDI";
|
|
|
|
homepage = "http://das.nasophon.de/mididings";
|
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = [ maintainers.gnidorah ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|