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

34 lines
1.0 KiB
Nix
Raw Normal View History

{ stdenv, fetchurl, makeWrapper, pkgconfig, alsaLib, dbus, libjack2
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 {
url = "http://repo.or.cz/a2jmidid.git/snapshot/7383d268c4bfe85df9f10df6351677659211d1ca.tar.gz";
sha256 = "06dgf5655znbvrd7fhrv8msv6zw8vk0hjqglcqkh90960mnnmwz7";
};
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ makeWrapper alsaLib dbus libjack2 python dbus-python ];
configurePhase = "${python.interpreter} waf configure --prefix=$out";
buildPhase = "${python.interpreter} waf";
installPhase = ''
${python.interpreter} waf install
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" ];
};
}