Files
nixpkgs/pkgs/by-name/a2/a2jmidid/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

64 lines
1.2 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 = {
description = "Daemon for exposing legacy ALSA sequencer applications in JACK MIDI system";
homepage = "https://a2jmidid.ladish.org/";
license = lib.licenses.gpl2Only;
maintainers = [ ];
platforms = [
"i686-linux"
"x86_64-linux"
"aarch64-linux"
];
};
}