nixpkgs/pkgs/applications/audio/a2jmidid/default.nix

41 lines
1.3 KiB
Nix
Raw Normal View History

2019-01-04 19:33:49 +00:00
{ stdenv, fetchurl, fetchpatch, makeWrapper, pkgconfig, alsaLib, dbus, libjack2
, wafHook
2016-11-14 20:08:08 +00:00
, python2Packages}:
let
2016-11-14 20:08:08 +00:00
inherit (python2Packages) python dbus-python;
in stdenv.mkDerivation rec {
name = "a2jmidid-${version}";
2013-12-15 09:08:31 +00:00
version = "8";
src = fetchurl {
2018-11-24 18:21:12 +00:00
url = "https://repo.or.cz/a2jmidid.git/snapshot/7383d268c4bfe85df9f10df6351677659211d1ca.tar.gz";
sha256 = "06dgf5655znbvrd7fhrv8msv6zw8vk0hjqglcqkh90960mnnmwz7";
};
2018-11-24 18:21:12 +00:00
nativeBuildInputs = [ pkgconfig makeWrapper wafHook ];
buildInputs = [ alsaLib dbus libjack2 python dbus-python ];
2019-01-04 19:33:49 +00:00
patches = [
(fetchpatch {
url = https://repo.or.cz/a2jmidid.git/patch/24e3b8e543256ae8fdfb4b75eb9fd775f07c46e2;
sha256 = "1nxrvnhxlgqc9wbxnp1gnpw4wjyzxvymwcg1gh2nqzmssgfykfkc";
})
(fetchpatch {
url = https://repo.or.cz/a2jmidid.git/patch/7f82da7eb2f540a94db23331be98d42a58ddc269;
sha256 = "1nab9zf0agbcj5pvhl90pz0cx1d204d4janqflc5ymjhy8jyrsdv";
})
];
postInstall = ''
wrapProgram $out/bin/a2j_control --set PYTHONPATH $PYTHONPATH
'';
meta = with stdenv.lib; {
description = "Daemon for exposing legacy ALSA sequencer applications in JACK MIDI system";
license = licenses.gpl2;
maintainers = [ maintainers.goibhniu ];
2018-02-27 17:23:32 +00:00
platforms = [ "i686-linux" "x86_64-linux" ];
};
}