2021-11-13 22:28:25 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, makeWrapper, pkg-config, alsa-lib, dbus, libjack2
|
2020-10-09 19:51:19 +00:00
|
|
|
, python3Packages , meson, ninja }:
|
2012-04-08 00:25:09 +00:00
|
|
|
|
2020-10-09 19:51:19 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "a2jmidid";
|
2020-10-09 19:51:19 +00:00
|
|
|
version = "9";
|
2012-04-08 00:25:09 +00:00
|
|
|
|
2020-10-09 19:51:19 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "linuxaudio";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
|
|
|
sha256 = "sha256-WNt74tSWV8bY4TnpLp86PsnrjkqWynJJt3Ra4gZl2fQ=";
|
2012-04-08 00:25:09 +00:00
|
|
|
};
|
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ pkg-config makeWrapper meson ninja ];
|
2021-06-10 02:57:09 +00:00
|
|
|
buildInputs = [ alsa-lib dbus libjack2 ] ++
|
2020-10-09 19:51:19 +00:00
|
|
|
(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 19:51:19 +00:00
|
|
|
substituteInPlace $out/bin/a2j --replace "a2j_control" "$out/bin/a2j_control"
|
2015-03-22 10:09:33 +00:00
|
|
|
'';
|
2012-04-08 00:25:09 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2013-10-05 14:22:46 +00:00
|
|
|
description = "Daemon for exposing legacy ALSA sequencer applications in JACK MIDI system";
|
2012-04-08 00:25:09 +00:00
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = [ maintainers.goibhniu ];
|
2020-07-02 05:31:19 +00:00
|
|
|
platforms = [ "i686-linux" "x86_64-linux" "aarch64-linux" ];
|
2012-04-08 00:25:09 +00:00
|
|
|
};
|
|
|
|
}
|