1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-21 21:54:10 +00:00
nixpkgs/pkgs/misc/jackaudio/jack1.nix

40 lines
1.1 KiB
Nix
Raw Normal View History

2015-04-26 04:14:56 +01:00
{ stdenv, fetchurl, pkgconfig
2015-04-26 04:14:56 +01:00
# Optional Dependencies
, alsaLib ? null, db ? null, libuuid ? null, libffado ? null, celt ? null
}:
2015-04-26 04:14:56 +01:00
let
shouldUsePkg = pkg: if pkg != null && stdenv.lib.any (stdenv.lib.meta.platformMatch stdenv.hostPlatform) pkg.meta.platforms then pkg else null;
2015-04-26 04:14:56 +01:00
optAlsaLib = shouldUsePkg alsaLib;
optDb = shouldUsePkg db;
optLibuuid = shouldUsePkg libuuid;
optLibffado = shouldUsePkg libffado;
optCelt = shouldUsePkg celt;
in
stdenv.mkDerivation rec {
pname = "jack1";
version = "0.125.0";
src = fetchurl {
url = "https://jackaudio.org/downloads/jack-audio-connection-kit-${version}.tar.gz";
sha256 = "0i6l25dmfk2ji2lrakqq9icnwjxklgcjzzk65dmsff91z2zva5rm";
};
configureFlags = [
(stdenv.lib.enableFeature (optLibffado != null) "firewire")
];
2015-04-26 04:14:56 +01:00
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ optAlsaLib optDb optLibffado optCelt ];
propagatedBuildInputs = [ optLibuuid ];
2015-04-26 04:14:56 +01:00
meta = with stdenv.lib; {
description = "JACK audio connection kit";
homepage = https://jackaudio.org;
license = with licenses; [ gpl2 lgpl21 ];
2015-04-26 04:14:56 +01:00
platforms = platforms.unix;
};
}