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