2015-06-27 08:17:52 +01:00
|
|
|
{ stdenv, fetchurl, makeWrapper, pkgconfig, alsaLib, dbus, libjack2
|
2016-08-16 21:51:21 +01:00
|
|
|
, pythonPackages}:
|
2012-04-08 01:25:09 +01:00
|
|
|
|
2016-08-16 21:51:21 +01:00
|
|
|
let
|
|
|
|
inherit (pythonPackages) python dbus-python;
|
|
|
|
in stdenv.mkDerivation rec {
|
2012-04-08 01:25:09 +01:00
|
|
|
name = "a2jmidid-${version}";
|
2013-12-15 09:08:31 +00:00
|
|
|
version = "8";
|
2012-04-08 01:25:09 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://download.gna.org/a2jmidid/${name}.tar.bz2";
|
2013-12-15 09:08:31 +00:00
|
|
|
sha256 = "0pzm0qk5ilqhwz74pydg1jwrds27vm47185dakdrxidb5bv3b5ia";
|
2012-04-08 01:25:09 +01:00
|
|
|
};
|
|
|
|
|
2016-08-16 21:51:21 +01:00
|
|
|
buildInputs = [ makeWrapper pkgconfig alsaLib dbus libjack2 python dbus-python ];
|
2012-04-08 01:25:09 +01:00
|
|
|
|
2016-08-16 21:51:21 +01:00
|
|
|
configurePhase = "${python.interpreter} waf configure --prefix=$out";
|
2012-04-08 01:25:09 +01:00
|
|
|
|
2016-08-16 21:51:21 +01:00
|
|
|
buildPhase = "${python.interpreter} waf";
|
2012-04-08 01:25:09 +01:00
|
|
|
|
2015-03-22 10:09:33 +00:00
|
|
|
installPhase = ''
|
2016-08-16 21:51:21 +01:00
|
|
|
${python.interpreter} waf install
|
2015-03-22 10:09:33 +00:00
|
|
|
wrapProgram $out/bin/a2j_control --set PYTHONPATH $PYTHONPATH
|
|
|
|
'';
|
2012-04-08 01:25:09 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = http://home.gna.org/a2jmidid;
|
2013-10-05 15:22:46 +01:00
|
|
|
description = "Daemon for exposing legacy ALSA sequencer applications in JACK MIDI system";
|
2012-04-08 01:25:09 +01:00
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = [ maintainers.goibhniu ];
|
2014-03-16 11:08:26 +00:00
|
|
|
platforms = platforms.linux;
|
2012-04-08 01:25:09 +01:00
|
|
|
};
|
|
|
|
}
|