summary refs log tree commit diff
path: root/pkgs/misc/jackaudio/jack1.nix
blob: 343c3af9cee7ce2ec1768aed5912b613c1348d9b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
{ stdenv, fetchurl, pkgconfig

# Optional Dependencies
, alsaLib ? null, db ? null, libuuid ? null, libffado ? null, celt ? null
}:

with stdenv;
let
  optAlsaLib = shouldUsePkg alsaLib;
  optDb = shouldUsePkg db;
  optLibuuid = shouldUsePkg libuuid;
  optLibffado = shouldUsePkg libffado;
  optCelt = shouldUsePkg celt;
in
stdenv.mkDerivation rec {
  name = "jack1-${version}";
  version = "0.124.1";

  src = fetchurl {
    url = "http://jackaudio.org/downloads/jack-audio-connection-kit-${version}.tar.gz";
    sha256 = "1mk1wnx33anp6haxfjjkfhwbaknfblsvj35nxvz0hvspcmhdyhpb";
  };
  
  configureFlags = ''
    ${if (optLibffado != null) then "--enable-firewire" else ""}
  '';

  nativeBuildInputs = [ pkgconfig ];
  buildInputs = [ optAlsaLib optDb optLibuuid optLibffado optCelt ];
  
  meta = with stdenv.lib; {
    description = "JACK audio connection kit";
    homepage = "http://jackaudio.org";
    license = "GPL";
    platforms = platforms.unix;
    maintainers = with maintainers; [ wkennington ];
  };
}