mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 00:43:20 +00:00
b5c1deca8a
He prefers to contribute to his own nixpkgs fork triton. Since he is still marked as maintainer in many packages this leaves the wrong impression he still maintains those.
40 lines
1.1 KiB
Nix
40 lines
1.1 KiB
Nix
{ stdenv, fetchurl, pkgconfig
|
|
|
|
# Optional Dependencies
|
|
, alsaLib ? null, db ? null, libuuid ? null, libffado ? null, celt ? null
|
|
}:
|
|
|
|
let
|
|
shouldUsePkg = pkg: if pkg != null && stdenv.lib.any (stdenv.lib.meta.platformMatch stdenv.hostPlatform) pkg.meta.platforms then pkg else null;
|
|
|
|
optAlsaLib = shouldUsePkg alsaLib;
|
|
optDb = shouldUsePkg db;
|
|
optLibuuid = shouldUsePkg libuuid;
|
|
optLibffado = shouldUsePkg libffado;
|
|
optCelt = shouldUsePkg celt;
|
|
in
|
|
stdenv.mkDerivation rec {
|
|
name = "jack1-${version}";
|
|
version = "0.125.0";
|
|
|
|
src = fetchurl {
|
|
url = "http://jackaudio.org/downloads/jack-audio-connection-kit-${version}.tar.gz";
|
|
sha256 = "0i6l25dmfk2ji2lrakqq9icnwjxklgcjzzk65dmsff91z2zva5rm";
|
|
};
|
|
|
|
configureFlags = [
|
|
(stdenv.lib.enableFeature (optLibffado != null) "firewire")
|
|
];
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
buildInputs = [ optAlsaLib optDb optLibffado optCelt ];
|
|
propagatedBuildInputs = [ optLibuuid ];
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "JACK audio connection kit";
|
|
homepage = http://jackaudio.org;
|
|
license = "GPL";
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|