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