blob: f4f8fcaf43feae9293b6821d364da9e9566e85eb (
plain)
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
39
40
41
42
43
44
45
46
47
|
{ stdenv, fetchurl, alsaLib, expat, libsamplerate
, libsndfile, makeWrapper, pkgconfig, python
, firewireSupport ? false, ffado ? null, bash }:
assert firewireSupport -> ffado != null;
stdenv.mkDerivation rec {
name = "jack2-${version}";
version = "1.9.10";
src = fetchurl {
urls = [
https://github.com/jackaudio/jack2/archive/v1.9.10.tar.gz
];
sha256 = "03b0iiyk3ng3vh5s8gaqwn565vik7910p56mlbk512bw3dhbdwc8";
};
buildInputs =
[ alsaLib expat libsamplerate libsndfile makeWrapper
pkgconfig python
] ++ (stdenv.lib.optional firewireSupport ffado);
patchPhase = ''
substituteInPlace svnversion_regenerate.sh --replace /bin/bash ${bash}/bin/bash
'';
configurePhase = ''
python waf configure --prefix=$out --alsa ${if firewireSupport then "--firewire" else ""}
'';
buildPhase = "python waf build";
installPhase = ''
python waf install
wrapProgram $out/bin/jack_control --set PYTHONPATH $PYTHONPATH
for bin in $out/bin/*; do
wrapProgram $bin --set JACK_PROMISCOUS_SERVER 1
done
'';
meta = with stdenv.lib; {
description = "JACK audio connection kit, version 2 with jackdbus";
homepage = "http://jackaudio.org";
license = licenses.gpl2Plus;
platforms = platforms.linux;
};
}
|