2021-06-28 23:13:55 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, fetchpatch, makeWrapper, pkg-config, alsa-lib, dbus, libjack2
|
2020-10-16 20:44:37 +00:00
|
|
|
, python3Packages , meson, ninja }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-10-16 20:44:37 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "a2jmidid";
|
2020-10-16 20:44:37 +00:00
|
|
|
version = "9";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-10-16 20:44:37 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "linuxaudio";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
|
|
|
sha256 = "sha256-WNt74tSWV8bY4TnpLp86PsnrjkqWynJJt3Ra4gZl2fQ=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ pkg-config makeWrapper meson ninja ];
|
2021-06-28 23:13:55 +00:00
|
|
|
buildInputs = [ alsa-lib dbus libjack2 ] ++
|
2020-10-16 20:44:37 +00:00
|
|
|
(with python3Packages; [ python dbus-python ]);
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/a2j_control --set PYTHONPATH $PYTHONPATH
|
2020-10-16 20:44:37 +00:00
|
|
|
substituteInPlace $out/bin/a2j --replace "a2j_control" "$out/bin/a2j_control"
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Daemon for exposing legacy ALSA sequencer applications in JACK MIDI system";
|
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = [ maintainers.goibhniu ];
|
2020-08-20 17:08:02 +00:00
|
|
|
platforms = [ "i686-linux" "x86_64-linux" "aarch64-linux" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|