3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/audio/a2jmidid/default.nix
Sven Keidel c44c3d21ba a2jmidid: wrap python path for a2j_control, fixes #6916
a2j_control fails because dbus is not in the python path. The exact error
message is:

    Traceback (most recent call last):
      File ".nix-profile/bin/a2j_control", line 11, in <module>
	import dbus
    ImportError: No module named dbus

The fix is to add the python dbus module to the build inputs and wrap the
python path for a2j_control.
2015-03-22 11:16:22 +01:00

32 lines
889 B
Nix

{ stdenv, fetchurl, makeWrapper, pkgconfig, alsaLib, dbus, jack2
, python, pythonDBus }:
stdenv.mkDerivation rec {
name = "a2jmidid-${version}";
version = "8";
src = fetchurl {
url = "http://download.gna.org/a2jmidid/${name}.tar.bz2";
sha256 = "0pzm0qk5ilqhwz74pydg1jwrds27vm47185dakdrxidb5bv3b5ia";
};
buildInputs = [ makeWrapper pkgconfig alsaLib dbus jack2 python pythonDBus ];
configurePhase = "python waf configure --prefix=$out";
buildPhase = "python waf";
installPhase = ''
python waf install
wrapProgram $out/bin/a2j_control --set PYTHONPATH $PYTHONPATH
'';
meta = with stdenv.lib; {
homepage = http://home.gna.org/a2jmidid;
description = "Daemon for exposing legacy ALSA sequencer applications in JACK MIDI system";
license = licenses.gpl2;
maintainers = [ maintainers.goibhniu ];
platforms = platforms.linux;
};
}