mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 23:20:55 +00:00
ad7bd4c7a3
Semi-automatic update generated by https://github.com/ryantm/nix-update tools. These checks were done: - built on NixOS - ran `/nix/store/h64aj4vry98w3pmdqbd1bqkhxnghbvgb-jack1-0.125.0/bin/jackd -V` and found version 0.125.0 - ran `/nix/store/h64aj4vry98w3pmdqbd1bqkhxnghbvgb-jack1-0.125.0/bin/jackd --version` and found version 0.125.0 - ran `/nix/store/h64aj4vry98w3pmdqbd1bqkhxnghbvgb-jack1-0.125.0/bin/jack_server_control -h` got 0 exit code - ran `/nix/store/h64aj4vry98w3pmdqbd1bqkhxnghbvgb-jack1-0.125.0/bin/jack_server_control -V` and found version 0.125.0 - ran `/nix/store/h64aj4vry98w3pmdqbd1bqkhxnghbvgb-jack1-0.125.0/bin/jack_server_control -v` and found version 0.125.0 - ran `/nix/store/h64aj4vry98w3pmdqbd1bqkhxnghbvgb-jack1-0.125.0/bin/jack_server_control -h` and found version 0.125.0 - ran `/nix/store/h64aj4vry98w3pmdqbd1bqkhxnghbvgb-jack1-0.125.0/bin/jack_midi_dump -h` got 0 exit code - found 0.125.0 with grep in /nix/store/h64aj4vry98w3pmdqbd1bqkhxnghbvgb-jack1-0.125.0 - directory tree listing: https://gist.github.com/359dc1584108a662b645c49abe027c95
41 lines
1.1 KiB
Nix
41 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 && pkg.meta.available 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 = ''
|
|
${if (optLibffado != null) then "--enable-firewire" else ""}
|
|
'';
|
|
|
|
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;
|
|
maintainers = with maintainers; [ wkennington ];
|
|
};
|
|
}
|