nixpkgs/pkgs/misc/jackaudio/jack1.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

41 lines
1.1 KiB
Nix
Raw Normal View History

2021-01-17 02:30:45 +00:00
{ lib, stdenv, fetchurl, pkg-config
2015-04-26 03:14:56 +00:00
# Optional Dependencies
, alsa-lib ? null, db ? null, libuuid ? null, libffado ? null, celt ? null
2015-04-26 03:14:56 +00:00
}:
2015-04-26 03:14:56 +00:00
let
2021-02-25 16:21:13 +00:00
shouldUsePkg = pkg: if pkg != null && lib.meta.availableOn stdenv.hostPlatform pkg then pkg else null;
optAlsaLib = shouldUsePkg alsa-lib;
2015-04-26 03:14:56 +00:00
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 = [
2021-01-15 13:21:58 +00:00
(lib.enableFeature (optLibffado != null) "firewire")
];
2021-01-17 02:30:45 +00:00
nativeBuildInputs = [ pkg-config ];
buildInputs = [ optAlsaLib optDb optLibffado optCelt ];
propagatedBuildInputs = [ optLibuuid ];
meta = with lib; {
2022-05-29 08:55:04 +00:00
broken = stdenv.isDarwin;
description = "JACK audio connection kit";
homepage = "https://jackaudio.org";
license = with licenses; [ gpl2 lgpl21 ];
2015-04-26 03:14:56 +00:00
platforms = platforms.unix;
};
}