5a501bd828
See #11567. Furthermore, it renames pythonPackages.dbus to pythonPackages.dbus- python as that's the name upstream uses. There is a small rebuild but I couldn't figure out the actual cause.
34 lines
990 B
Nix
34 lines
990 B
Nix
{ stdenv, fetchurl, makeWrapper, pkgconfig, alsaLib, dbus, libjack2
|
|
, pythonPackages}:
|
|
|
|
let
|
|
inherit (pythonPackages) python dbus-python;
|
|
in 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 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; {
|
|
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;
|
|
};
|
|
}
|