2012-04-08 04:00:03 +04:00
|
|
|
{ stdenv, fetchurl, alsaLib, dbus, expat, libsamplerate
|
|
|
|
, libsndfile, makeWrapper, pkgconfig, python, pythonDBus
|
2013-02-03 20:22:43 +04:00
|
|
|
, firewireSupport ? false, ffado ? null, bash }:
|
2012-04-08 04:00:03 +04:00
|
|
|
|
|
|
|
assert firewireSupport -> ffado != null;
|
2010-07-28 22:01:17 +04:00
|
|
|
|
2011-05-10 00:49:51 +04:00
|
|
|
stdenv.mkDerivation rec {
|
2014-07-31 14:47:17 +04:00
|
|
|
name = "jack2-${version}";
|
2013-02-03 20:22:43 +04:00
|
|
|
version = "1.9.9.5";
|
2010-07-28 22:01:17 +04:00
|
|
|
|
|
|
|
src = fetchurl {
|
2012-10-18 16:16:34 +04:00
|
|
|
urls = [
|
2013-02-03 20:22:43 +04:00
|
|
|
https://dl.dropbox.com/u/28869550/jack-1.9.9.5.tar.bz2
|
2012-10-18 16:16:34 +04:00
|
|
|
];
|
2013-02-03 20:22:43 +04:00
|
|
|
sha256 = "1ggba69jsfg7dmjzlyqz58y2wa92lm3vwdy4r15bs7mvxb65mvv5";
|
2010-07-28 22:01:17 +04:00
|
|
|
};
|
2008-12-20 04:20:35 +03:00
|
|
|
|
2012-04-08 04:00:03 +04:00
|
|
|
buildInputs =
|
|
|
|
[ alsaLib dbus expat libsamplerate libsndfile makeWrapper
|
|
|
|
pkgconfig python pythonDBus
|
|
|
|
] ++ (stdenv.lib.optional firewireSupport ffado);
|
2011-05-10 00:49:51 +04:00
|
|
|
|
2013-02-03 20:22:43 +04:00
|
|
|
patchPhase = ''
|
|
|
|
substituteInPlace svnversion_regenerate.sh --replace /bin/bash ${bash}/bin/bash
|
|
|
|
'';
|
2012-10-02 00:26:51 +04:00
|
|
|
|
2012-04-08 04:00:03 +04:00
|
|
|
configurePhase = ''
|
2012-04-08 16:03:15 +04:00
|
|
|
python waf configure --prefix=$out --dbus --alsa ${if firewireSupport then "--firewire" else ""}
|
2012-04-08 04:00:03 +04:00
|
|
|
'';
|
2011-05-10 00:49:51 +04:00
|
|
|
|
2012-03-18 02:03:15 +04:00
|
|
|
buildPhase = "python waf build";
|
2011-05-10 00:49:51 +04:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
python waf install
|
|
|
|
wrapProgram $out/bin/jack_control --set PYTHONPATH $PYTHONPATH
|
2009-09-21 13:58:24 +04:00
|
|
|
'';
|
2011-05-10 00:49:51 +04:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "JACK audio connection kit, version 2 with jackdbus";
|
2010-07-28 22:01:17 +04:00
|
|
|
homepage = "http://jackaudio.org";
|
2011-05-10 00:49:51 +04:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.goibhniu ];
|
2010-07-28 22:01:17 +04:00
|
|
|
};
|
2008-12-20 04:20:35 +03:00
|
|
|
}
|