2021-06-10 04:57:09 +02:00
|
|
|
{ lib, stdenv, fetchFromGitHub, fetchpatch, makeWrapper, pkg-config, alsa-lib, dbus, libjack2
|
2020-10-09 21:51:19 +02:00
|
|
|
, 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
|
|
|
};
|
|
|
|
|
2021-01-19 07:50:56 +01:00
|
|
|
nativeBuildInputs = [ pkg-config makeWrapper meson ninja ];
|
2021-06-10 04:57:09 +02:00
|
|
|
buildInputs = [ alsa-lib dbus libjack2 ] ++
|
2020-10-09 21:51:19 +02:00
|
|
|
(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
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with 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
|
|
|
};
|
|
|
|
}
|