2015-04-26 03:14:56 +00:00
|
|
|
{ stdenv, fetchurl, pkgconfig
|
2014-07-31 10:47:17 +00:00
|
|
|
|
2015-04-26 03:14:56 +00:00
|
|
|
# Optional Dependencies
|
|
|
|
, alsaLib ? null, db ? null, libuuid ? null, libffado ? null, celt ? null
|
|
|
|
}:
|
2014-07-31 10:47:17 +00:00
|
|
|
|
2015-04-26 03:14:56 +00:00
|
|
|
let
|
2018-08-28 22:20:54 +00:00
|
|
|
shouldUsePkg = pkg: if pkg != null && stdenv.lib.any (stdenv.lib.meta.platformMatch stdenv.hostPlatform) pkg.meta.platforms then pkg else null;
|
2015-06-01 18:52:03 +00:00
|
|
|
|
2015-04-26 03:14:56 +00:00
|
|
|
optAlsaLib = shouldUsePkg alsaLib;
|
|
|
|
optDb = shouldUsePkg db;
|
|
|
|
optLibuuid = shouldUsePkg libuuid;
|
|
|
|
optLibffado = shouldUsePkg libffado;
|
|
|
|
optCelt = shouldUsePkg celt;
|
|
|
|
in
|
2014-07-31 10:47:17 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "jack1";
|
2018-03-17 01:07:08 +00:00
|
|
|
version = "0.125.0";
|
2014-07-31 10:47:17 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-11-16 00:41:23 +00:00
|
|
|
url = "https://jackaudio.org/downloads/jack-audio-connection-kit-${version}.tar.gz";
|
2018-03-17 01:07:08 +00:00
|
|
|
sha256 = "0i6l25dmfk2ji2lrakqq9icnwjxklgcjzzk65dmsff91z2zva5rm";
|
2014-07-31 10:47:17 +00:00
|
|
|
};
|
2019-01-26 10:01:09 +00:00
|
|
|
|
2018-07-25 21:44:21 +00:00
|
|
|
configureFlags = [
|
|
|
|
(stdenv.lib.enableFeature (optLibffado != null) "firewire")
|
|
|
|
];
|
2014-07-31 10:47:17 +00:00
|
|
|
|
2015-04-26 03:14:56 +00:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2015-11-14 20:32:51 +00:00
|
|
|
buildInputs = [ optAlsaLib optDb optLibffado optCelt ];
|
|
|
|
propagatedBuildInputs = [ optLibuuid ];
|
2019-01-26 10:01:09 +00:00
|
|
|
|
2015-04-26 03:14:56 +00:00
|
|
|
meta = with stdenv.lib; {
|
2014-07-31 10:47:17 +00:00
|
|
|
description = "JACK audio connection kit";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://jackaudio.org";
|
2019-11-16 00:41:23 +00:00
|
|
|
license = with licenses; [ gpl2 lgpl21 ];
|
2015-04-26 03:14:56 +00:00
|
|
|
platforms = platforms.unix;
|
2014-07-31 10:47:17 +00:00
|
|
|
};
|
|
|
|
}
|