2024-04-21 15:54:59 +00:00
|
|
|
{ lib, stdenv, fetchFromGitea, makeWrapper, pkg-config, alsa-lib, dbus, libjack2
|
|
|
|
, python3Packages , meson, ninja, gitUpdater }:
|
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";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "12";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
src = fetchFromGitea {
|
|
|
|
domain = "gitea.ladish.org";
|
|
|
|
owner = "LADI";
|
|
|
|
repo = "a2jmidid";
|
|
|
|
rev = "refs/tags/${version}";
|
|
|
|
fetchSubmodules = true;
|
|
|
|
hash = "sha256-PZKGhHmPMf0AucPruOLB9DniM5A3BKdghFCrd5pTzeM=";
|
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
|
|
|
'';
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
passthru.updateScript = gitUpdater { };
|
|
|
|
|
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";
|
2024-04-21 15:54:59 +00:00
|
|
|
homepage = "https://a2jmidid.ladish.org/";
|
|
|
|
license = licenses.gpl2Only;
|
2020-04-24 23:36:52 +00:00
|
|
|
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
|
|
|
};
|
|
|
|
}
|