2012-04-08 01:00:03 +01:00
|
|
|
{ stdenv, fetchurl, alsaLib, dbus, expat, libsamplerate
|
|
|
|
, libsndfile, makeWrapper, pkgconfig, python, pythonDBus
|
|
|
|
, firewireSupport ? false, ffado ? null }:
|
|
|
|
|
|
|
|
assert firewireSupport -> ffado != null;
|
2010-07-28 19:01:17 +01:00
|
|
|
|
2011-05-09 21:49:51 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "jackdbus-${version}";
|
2012-03-17 22:03:15 +00:00
|
|
|
version = "1.9.8";
|
2010-07-28 19:01:17 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2012-03-17 22:03:15 +00:00
|
|
|
url = "http://www.grame.fr/~letz/jack-1.9.8.tgz";
|
|
|
|
sha256 = "0788092zxrivcfnfg15brpjkf14x8ma8cwjz4k0b9xdxajn2wwac";
|
2010-07-28 19:01:17 +01:00
|
|
|
};
|
2008-12-20 01:20:35 +00:00
|
|
|
|
2012-04-08 01:00:03 +01:00
|
|
|
buildInputs =
|
|
|
|
[ alsaLib dbus expat libsamplerate libsndfile makeWrapper
|
|
|
|
pkgconfig python pythonDBus
|
|
|
|
] ++ (stdenv.lib.optional firewireSupport ffado);
|
2011-05-09 21:49:51 +01:00
|
|
|
|
2012-04-08 01:00:03 +01:00
|
|
|
configurePhase = ''
|
|
|
|
cd jack-1.9.8
|
|
|
|
python waf configure --prefix=$out --dbus --alsa \
|
|
|
|
${if firewireSupport then "--firewire" else ""}
|
|
|
|
'';
|
2011-05-09 21:49:51 +01:00
|
|
|
|
2012-03-17 22:03:15 +00:00
|
|
|
buildPhase = "python waf build";
|
2011-05-09 21:49:51 +01:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
python waf install
|
|
|
|
wrapProgram $out/bin/jack_control --set PYTHONPATH $PYTHONPATH
|
2009-09-21 10:58:24 +01:00
|
|
|
'';
|
2011-05-09 21:49:51 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "JACK audio connection kit, version 2 with jackdbus";
|
2010-07-28 19:01:17 +01:00
|
|
|
homepage = "http://jackaudio.org";
|
2011-05-09 21:49:51 +01:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.goibhniu ];
|
2010-07-28 19:01:17 +01:00
|
|
|
};
|
2008-12-20 01:20:35 +00:00
|
|
|
}
|