summary refs log tree commit diff
path: root/pkgs/tools/audio
diff options
context:
space:
mode:
authorFrederik Rietdijk <freddyrietdijk@fridh.nl>2019-07-10 12:44:02 +0200
committerGitHub <noreply@github.com>2019-07-10 12:44:02 +0200
commitc62f181eb5cae92506646e525feeaa46f23fb459 (patch)
treec4b97fa0d93b38327901e0c13f0d26fd9ee11a2f /pkgs/tools/audio
parentce2f74df2cade57e74c235292c8b074281903e71 (diff)
parentde8ad1f55b0b5871f12d46d035902c45a982e4e3 (diff)
downloadnixpkgs-c62f181eb5cae92506646e525feeaa46f23fb459.tar
nixpkgs-c62f181eb5cae92506646e525feeaa46f23fb459.tar.gz
nixpkgs-c62f181eb5cae92506646e525feeaa46f23fb459.tar.bz2
nixpkgs-c62f181eb5cae92506646e525feeaa46f23fb459.tar.lz
nixpkgs-c62f181eb5cae92506646e525feeaa46f23fb459.tar.xz
nixpkgs-c62f181eb5cae92506646e525feeaa46f23fb459.tar.zst
nixpkgs-c62f181eb5cae92506646e525feeaa46f23fb459.zip
Merge pull request #63207 from gnidorah/mididings
 mididings: init at 20151117
Diffstat (limited to 'pkgs/tools/audio')
-rw-r--r--pkgs/tools/audio/mididings/default.nix38
1 files changed, 38 insertions, 0 deletions
diff --git a/pkgs/tools/audio/mididings/default.nix b/pkgs/tools/audio/mididings/default.nix
new file mode 100644
index 00000000000..fb3d0e51341
--- /dev/null
+++ b/pkgs/tools/audio/mididings/default.nix
@@ -0,0 +1,38 @@
+{ stdenv, pythonPackages, fetchFromGitHub, pkg-config, glib, alsaLib, libjack2  }:
+
+pythonPackages.buildPythonApplication rec {
+  version = "20151117";
+  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 ];
+
+  preBuild = with stdenv.lib.versions; ''
+    substituteInPlace setup.py \
+      --replace boost_python "boost_python${major pythonPackages.python.version}${minor pythonPackages.python.version}"
+  '';
+
+  meta = with stdenv.lib; {
+    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;
+  };
+}