2012-04-08 04:16:59 +04:00
|
|
|
{ stdenv, fetchurl, pkgconfig, alsaLib
|
|
|
|
, firewireSupport ? false, ffado ? null }:
|
2011-05-10 00:49:51 +04:00
|
|
|
|
2012-04-08 04:16:59 +04:00
|
|
|
assert firewireSupport -> ffado != null;
|
2011-05-10 00:49:51 +04:00
|
|
|
|
2012-04-08 04:16:59 +04:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "jack-${version}";
|
|
|
|
version = "0.121.3";
|
2011-05-10 00:49:51 +04:00
|
|
|
|
|
|
|
src = fetchurl {
|
2012-04-08 04:16:59 +04:00
|
|
|
url = "http://jackaudio.org/downloads/jack-audio-connection-kit-${version}.tar.gz";
|
|
|
|
sha256 = "1ypa3gjwy4vmaskin0vczmmdwybckkl42wmkfabx3v5yx8yms2dp";
|
2011-05-10 00:49:51 +04:00
|
|
|
};
|
|
|
|
|
2012-04-08 04:16:59 +04:00
|
|
|
preBuild = "echo ok";
|
2011-05-10 00:49:51 +04:00
|
|
|
|
2012-04-08 04:16:59 +04:00
|
|
|
configureFlags = ''
|
|
|
|
${if firewireSupport then "--enable-firewire" else ""}
|
2011-05-10 00:49:51 +04:00
|
|
|
'';
|
2012-04-08 04:16:59 +04:00
|
|
|
|
|
|
|
buildInputs =
|
|
|
|
[ pkgconfig alsaLib
|
|
|
|
] ++ (stdenv.lib.optional firewireSupport ffado);
|
2011-05-10 00:49:51 +04:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "JACK audio connection kit";
|
|
|
|
homepage = "http://jackaudio.org";
|
|
|
|
license = "GPL";
|
|
|
|
};
|
|
|
|
}
|