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