571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
36 lines
1.1 KiB
Nix
36 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" ];
|
|
};
|
|
}
|