f34ce41345
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
35 lines
1.1 KiB
Nix
35 lines
1.1 KiB
Nix
{ lib, stdenv, fetchFromGitea, makeWrapper, pkg-config, alsa-lib, dbus, libjack2
|
|
, python3Packages , meson, ninja, gitUpdater }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "a2jmidid";
|
|
version = "12";
|
|
|
|
src = fetchFromGitea {
|
|
domain = "gitea.ladish.org";
|
|
owner = "LADI";
|
|
repo = "a2jmidid";
|
|
rev = "refs/tags/${version}";
|
|
fetchSubmodules = true;
|
|
hash = "sha256-PZKGhHmPMf0AucPruOLB9DniM5A3BKdghFCrd5pTzeM=";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkg-config makeWrapper meson ninja ];
|
|
buildInputs = [ alsa-lib dbus libjack2 ] ++
|
|
(with python3Packages; [ python dbus-python ]);
|
|
|
|
postInstall = ''
|
|
wrapProgram $out/bin/a2j_control --set PYTHONPATH $PYTHONPATH
|
|
substituteInPlace $out/bin/a2j --replace "a2j_control" "$out/bin/a2j_control"
|
|
'';
|
|
|
|
passthru.updateScript = gitUpdater { };
|
|
|
|
meta = with lib; {
|
|
description = "Daemon for exposing legacy ALSA sequencer applications in JACK MIDI system";
|
|
homepage = "https://a2jmidid.ladish.org/";
|
|
license = licenses.gpl2Only;
|
|
maintainers = [ ];
|
|
platforms = [ "i686-linux" "x86_64-linux" "aarch64-linux" ];
|
|
};
|
|
}
|