2019-01-04 20:33:49 +01:00
|
|
|
{ stdenv, fetchurl, fetchpatch, makeWrapper, pkgconfig, alsaLib, dbus, libjack2
|
2018-11-11 22:20:41 +01:00
|
|
|
, wafHook
|
2016-11-14 21:08:08 +01:00
|
|
|
, python2Packages}:
|
2012-04-08 02:25:09 +02:00
|
|
|
|
2016-08-16 22:51:21 +02:00
|
|
|
let
|
2016-11-14 21:08:08 +01:00
|
|
|
inherit (python2Packages) python dbus-python;
|
2019-08-13 23:52:01 +02:00
|
|
|
in stdenv.mkDerivation {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "a2jmidid";
|
2013-12-15 10:08:31 +01:00
|
|
|
version = "8";
|
2012-04-08 02:25:09 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-11-24 19:21:12 +01:00
|
|
|
url = "https://repo.or.cz/a2jmidid.git/snapshot/7383d268c4bfe85df9f10df6351677659211d1ca.tar.gz";
|
2017-08-03 19:55:07 +02:00
|
|
|
sha256 = "06dgf5655znbvrd7fhrv8msv6zw8vk0hjqglcqkh90960mnnmwz7";
|
2012-04-08 02:25:09 +02:00
|
|
|
};
|
|
|
|
|
2018-11-24 19:21:12 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig makeWrapper wafHook ];
|
|
|
|
buildInputs = [ alsaLib dbus libjack2 python dbus-python ];
|
2012-04-08 02:25:09 +02:00
|
|
|
|
2019-01-04 20:33:49 +01: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";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2018-11-11 22:20:41 +01:00
|
|
|
postInstall = ''
|
2015-03-22 11:09:33 +01:00
|
|
|
wrapProgram $out/bin/a2j_control --set PYTHONPATH $PYTHONPATH
|
|
|
|
'';
|
2012-04-08 02:25:09 +02:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2013-10-05 16:22:46 +02:00
|
|
|
description = "Daemon for exposing legacy ALSA sequencer applications in JACK MIDI system";
|
2012-04-08 02:25:09 +02:00
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = [ maintainers.goibhniu ];
|
2018-02-27 18:23:32 +01:00
|
|
|
platforms = [ "i686-linux" "x86_64-linux" ];
|
2012-04-08 02:25:09 +02:00
|
|
|
};
|
|
|
|
}
|