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