From 2a5325d3cbbf080f4fdcd369ba102ef7adc250ba Mon Sep 17 00:00:00 2001 From: Graham Bennett Date: Sun, 26 Jul 2020 13:56:01 +0100 Subject: [PATCH] python-rtmidi: add alsaLib and libjack2 deps python-rtmidi includes the rtmidi C++ library as a submodule (which is unfortunate since rtmidi is separately packaged in nixpkgs already) and wraps it using Cython. Without these dependencies, python-rtmidi won't build support for ALSA or jack into the compiled rtmidi, and will only have the 'dummy' API available. --- pkgs/development/python-modules/python-rtmidi/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/python-rtmidi/default.nix b/pkgs/development/python-modules/python-rtmidi/default.nix index 24d86289bf2a..3538db60793d 100644 --- a/pkgs/development/python-modules/python-rtmidi/default.nix +++ b/pkgs/development/python-modules/python-rtmidi/default.nix @@ -1,5 +1,5 @@ { lib, buildPythonPackage, fetchPypi, isPy27 -, tox, flake8, alabaster +, pkg-config, alsaLib, libjack2, tox, flake8, alabaster }: buildPythonPackage rec { @@ -12,6 +12,8 @@ buildPythonPackage rec { sha256 = "0b0y3hnjl2fvm3jyfvp1msfikp19vbqqqi7lawgy3azisvdyrgq7"; }; + nativeBuildInputs = [ pkg-config ]; + buildInputs = [ alsaLib libjack2 ]; checkInputs = [ tox flake8