2015-06-27 08:17:52 +01:00
|
|
|
{ stdenv, fetchurl, makeWrapper, pkgconfig, alsaLib, dbus, libjack2
|
2018-11-11 21:20:41 +00:00
|
|
|
, wafHook
|
2016-11-14 20:08:08 +00:00
|
|
|
, python2Packages}:
|
2012-04-08 01:25:09 +01:00
|
|
|
|
2016-08-16 21:51:21 +01:00
|
|
|
let
|
2016-11-14 20:08:08 +00:00
|
|
|
inherit (python2Packages) python dbus-python;
|
2016-08-16 21:51:21 +01:00
|
|
|
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 {
|
2017-08-03 18:55:07 +01:00
|
|
|
url = "http://repo.or.cz/a2jmidid.git/snapshot/7383d268c4bfe85df9f10df6351677659211d1ca.tar.gz";
|
|
|
|
sha256 = "06dgf5655znbvrd7fhrv8msv6zw8vk0hjqglcqkh90960mnnmwz7";
|
2012-04-08 01:25:09 +01:00
|
|
|
};
|
|
|
|
|
2018-11-11 21:20:41 +00:00
|
|
|
nativeBuildInputs = [ pkgconfig wafHook ];
|
2017-09-05 22:26:13 +01:00
|
|
|
buildInputs = [ makeWrapper alsaLib dbus libjack2 python dbus-python ];
|
2012-04-08 01:25:09 +01:00
|
|
|
|
2018-11-11 21:20:41 +00:00
|
|
|
postInstall = ''
|
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; {
|
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 ];
|
2018-02-27 17:23:32 +00:00
|
|
|
platforms = [ "i686-linux" "x86_64-linux" ];
|
2012-04-08 01:25:09 +01:00
|
|
|
};
|
|
|
|
}
|