2020-10-09 21:51:19 +02:00
|
|
|
{ stdenv, fetchFromGitHub, fetchpatch, makeWrapper, pkgconfig, alsaLib, dbus, libjack2
|
|
|
|
, python3Packages , meson, ninja }:
|
2012-04-08 02:25:09 +02:00
|
|
|
|
2020-10-09 21:51:19 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "a2jmidid";
|
2020-10-09 21:51:19 +02:00
|
|
|
version = "9";
|
2012-04-08 02:25:09 +02:00
|
|
|
|
2020-10-09 21:51:19 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "linuxaudio";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
|
|
|
sha256 = "sha256-WNt74tSWV8bY4TnpLp86PsnrjkqWynJJt3Ra4gZl2fQ=";
|
2012-04-08 02:25:09 +02:00
|
|
|
};
|
|
|
|
|
2020-10-09 21:51:19 +02:00
|
|
|
nativeBuildInputs = [ pkgconfig makeWrapper meson ninja ];
|
|
|
|
buildInputs = [ alsaLib dbus libjack2 ] ++
|
|
|
|
(with python3Packages; [ python dbus-python ]);
|
2019-01-04 20:33:49 +01:00
|
|
|
|
2018-11-11 22:20:41 +01:00
|
|
|
postInstall = ''
|
2015-03-22 11:09:33 +01:00
|
|
|
wrapProgram $out/bin/a2j_control --set PYTHONPATH $PYTHONPATH
|
2020-10-09 21:51:19 +02:00
|
|
|
substituteInPlace $out/bin/a2j --replace "a2j_control" "$out/bin/a2j_control"
|
2015-03-22 11:09:33 +01:00
|
|
|
'';
|
2012-04-08 02:25:09 +02:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2013-10-05 16:22:46 +02:00
|
|
|
description = "Daemon for exposing legacy ALSA sequencer applications in JACK MIDI system";
|
2012-04-08 02:25:09 +02:00
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = [ maintainers.goibhniu ];
|
2020-07-02 07:31:19 +02:00
|
|
|
platforms = [ "i686-linux" "x86_64-linux" "aarch64-linux" ];
|
2012-04-08 02:25:09 +02:00
|
|
|
};
|
|
|
|
}
|