2015-06-27 09:17:52 +02:00
|
|
|
{ stdenv, fetchurl, makeWrapper, pkgconfig, alsaLib, dbus, libjack2
|
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;
|
2016-08-16 22:51:21 +02:00
|
|
|
in stdenv.mkDerivation rec {
|
2012-04-08 02:25:09 +02:00
|
|
|
name = "a2jmidid-${version}";
|
2013-12-15 10:08:31 +01:00
|
|
|
version = "8";
|
2012-04-08 02:25:09 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2017-08-03 19:55:07 +02:00
|
|
|
url = "http://repo.or.cz/a2jmidid.git/snapshot/7383d268c4bfe85df9f10df6351677659211d1ca.tar.gz";
|
|
|
|
sha256 = "06dgf5655znbvrd7fhrv8msv6zw8vk0hjqglcqkh90960mnnmwz7";
|
2012-04-08 02:25:09 +02:00
|
|
|
};
|
|
|
|
|
2017-09-05 23:26:13 +02:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [ makeWrapper alsaLib dbus libjack2 python dbus-python ];
|
2012-04-08 02:25:09 +02:00
|
|
|
|
2016-08-16 22:51:21 +02:00
|
|
|
configurePhase = "${python.interpreter} waf configure --prefix=$out";
|
2012-04-08 02:25:09 +02:00
|
|
|
|
2016-08-16 22:51:21 +02:00
|
|
|
buildPhase = "${python.interpreter} waf";
|
2012-04-08 02:25:09 +02:00
|
|
|
|
2015-03-22 11:09:33 +01:00
|
|
|
installPhase = ''
|
2016-08-16 22:51:21 +02:00
|
|
|
${python.interpreter} waf install
|
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 ];
|
2014-03-16 12:08:26 +01:00
|
|
|
platforms = platforms.linux;
|
2012-04-08 02:25:09 +02:00
|
|
|
};
|
|
|
|
}
|